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/swt/SwtMouseWrapper.java | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'ardor3d-swt') 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 . */ @@ -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); } -- cgit v1.2.3