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-swt | |
parent | 59d5b8c9cddb2842440ddbf008a576a2a26a774f (diff) |
Adds the support of 9 mouse buttons into the JOGL backends of the other toolkits (SWT, AWT)
Diffstat (limited to 'ardor3d-swt')
-rw-r--r-- | ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtMouseWrapper.java | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtMouseWrapper.java b/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtMouseWrapper.java index 3b735eb..2937ec1 100644 --- a/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtMouseWrapper.java +++ b/ardor3d-swt/src/main/java/com/ardor3d/input/swt/SwtMouseWrapper.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>. */ @@ -168,6 +168,24 @@ public class SwtMouseWrapper implements MouseWrapper, MouseListener, MouseMoveLi case 2: button = MouseButton.MIDDLE; break; + 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.button); } |