From a39c72b5a928a57c074d379f7c426c18eb076f73 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 19 Mar 2023 06:12:09 +0100 Subject: NEWT MouseEvent.getEventTypeString(): Shorten by removing leading 'EVENT_MOUSE_' --- src/newt/classes/com/jogamp/newt/event/MouseEvent.java | 16 ++++++++-------- 1 file 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 + ")"; } } -- cgit v1.2.3