diff options
Diffstat (limited to 'coreAPI')
-rw-r--r-- | coreAPI/src/java/net/java/games/input/Mouse.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/coreAPI/src/java/net/java/games/input/Mouse.java b/coreAPI/src/java/net/java/games/input/Mouse.java index 83676a4..8063eac 100644 --- a/coreAPI/src/java/net/java/games/input/Mouse.java +++ b/coreAPI/src/java/net/java/games/input/Mouse.java @@ -133,4 +133,21 @@ public abstract class Mouse extends AbstractController { public Component getBack() { return getComponent(Component.Identifier.Button.BACK); } + + /** + * Returns forth mouse button, null if the mouse hasn't + * got one. + */ + public Component getButton3() { + return getComponent(Component.Identifier.Button._3); + } + + /** + * Returns fifth mouse button, null if the mouse hasn't + * got one. + */ + public Component getButton4() { + return getComponent(Component.Identifier.Button._4); + } + } // class Mouse |