aboutsummaryrefslogtreecommitdiffstats
path: root/coreAPI/src/java/net
diff options
context:
space:
mode:
authorendolf <[email protected]>2007-06-20 21:04:46 +0000
committerendolf <[email protected]>2007-06-20 21:04:46 +0000
commit8f42349adc3e5dd4998ad120c72386808c30be09 (patch)
tree3f9421e8f4df4d3c8d88e509d2c20704aa845fdb /coreAPI/src/java/net
parentde335a22ccd4056a3e12192ba8f3254fd327b4cd (diff)
Raw input has mouse buttons 4 and 5 as button 3 and 4 not side and extra.
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@188 e343933a-64c8-49c5-92b1-88f2ce3e89e8
Diffstat (limited to 'coreAPI/src/java/net')
-rw-r--r--coreAPI/src/java/net/java/games/input/Mouse.java17
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