diff options
author | Julien Gouesse <[email protected]> | 2015-08-28 18:21:16 +0200 |
---|---|---|
committer | Julien Gouesse <[email protected]> | 2015-08-28 18:21:16 +0200 |
commit | 869c418ce87118e8d5a50739187bc5804916252f (patch) | |
tree | ccda07264c1e9ee0a27b77fa5b9a4cb1a085ddc5 /ardor3d-awt | |
parent | 59d5b8c9cddb2842440ddbf008a576a2a26a774f (diff) |
Adds the support of 9 mouse buttons into the JOGL backends of the other toolkits (SWT, AWT)
Diffstat (limited to 'ardor3d-awt')
-rw-r--r-- | ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseWrapper.java | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseWrapper.java b/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseWrapper.java index fac2cba..fac2ec3 100644 --- a/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseWrapper.java +++ b/ardor3d-awt/src/main/java/com/ardor3d/input/awt/AwtMouseWrapper.java @@ -3,7 +3,7 @@ * * This file is part of Ardor3D. * - * Ardor3D is free software: you can redistribute it and/or modify it + * Ardor3D is free software: you can redistribute it and/or modify it * under the terms of its license which may be found in the accompanying * LICENSE file or at <http://www.ardor3d.com/LICENSE>. */ @@ -276,6 +276,23 @@ public class AwtMouseWrapper implements MouseWrapper, MouseListener, MouseWheelL break; case MouseEvent.BUTTON3: button = MouseButton.RIGHT; + case 4: + button = MouseButton.FOUR; + break; + case 5: + button = MouseButton.FIVE; + break; + case 6: + button = MouseButton.SIX; + break; + case 7: + button = MouseButton.SEVEN; + break; + case 8: + button = MouseButton.EIGHT; + break; + case 9: + button = MouseButton.NINE; break; default: throw new RuntimeException("unknown button: " + e.getButton()); |