From 869c418ce87118e8d5a50739187bc5804916252f Mon Sep 17 00:00:00 2001 From: Julien Gouesse Date: Fri, 28 Aug 2015 18:21:16 +0200 Subject: Adds the support of 9 mouse buttons into the JOGL backends of the other toolkits (SWT, AWT) --- .../java/com/ardor3d/input/awt/AwtMouseWrapper.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'ardor3d-awt') 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 . */ @@ -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()); -- cgit v1.2.3