summaryrefslogtreecommitdiffstats
path: root/src/newt/classes/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-19 06:12:09 +0100
committerSven Gothel <[email protected]>2023-03-19 06:12:09 +0100
commita39c72b5a928a57c074d379f7c426c18eb076f73 (patch)
tree26ff45fbe16b8d47d653c2a0b0a80d4751b5dc31 /src/newt/classes/com/jogamp
parent603068a4e6af5293db10db73ead3a83b7a74af34 (diff)
NEWT MouseEvent.getEventTypeString(): Shorten by removing leading 'EVENT_MOUSE_'
Diffstat (limited to 'src/newt/classes/com/jogamp')
-rw-r--r--src/newt/classes/com/jogamp/newt/event/MouseEvent.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/newt/classes/com/jogamp/newt/event/MouseEvent.java b/src/newt/classes/com/jogamp/newt/event/MouseEvent.java
index 2d68c5788..999c58c95 100644
--- a/src/newt/classes/com/jogamp/newt/event/MouseEvent.java
+++ b/src/newt/classes/com/jogamp/newt/event/MouseEvent.java
@@ -542,14 +542,14 @@ public class MouseEvent extends InputEvent
public static String getEventTypeString(final short type) {
switch(type) {
- case EVENT_MOUSE_CLICKED: return "EVENT_MOUSE_CLICKED";
- case EVENT_MOUSE_ENTERED: return "EVENT_MOUSE_ENTERED";
- case EVENT_MOUSE_EXITED: return "EVENT_MOUSE_EXITED";
- case EVENT_MOUSE_PRESSED: return "EVENT_MOUSE_PRESSED";
- case EVENT_MOUSE_RELEASED: return "EVENT_MOUSE_RELEASED";
- case EVENT_MOUSE_MOVED: return "EVENT_MOUSE_MOVED";
- case EVENT_MOUSE_DRAGGED: return "EVENT_MOUSE_DRAGGED";
- case EVENT_MOUSE_WHEEL_MOVED: return "EVENT_MOUSE_WHEEL_MOVED";
+ case EVENT_MOUSE_CLICKED: return "CLICKED";
+ case EVENT_MOUSE_ENTERED: return "ENTERED";
+ case EVENT_MOUSE_EXITED: return "EXITED";
+ case EVENT_MOUSE_PRESSED: return "PRESSED";
+ case EVENT_MOUSE_RELEASED: return "RELEASED";
+ case EVENT_MOUSE_MOVED: return "MOVED";
+ case EVENT_MOUSE_DRAGGED: return "DRAGGED";
+ case EVENT_MOUSE_WHEEL_MOVED: return "WHEEL_MOVED";
default: return "unknown (" + type + ")";
}
}