Package com.avrix.ui
Class InputWidgetHandler
java.lang.Object
com.avrix.ui.InputWidgetHandler
Handling input events for widgets
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
onKeyPress
(int key) Handles key press events for all visible widgets.static boolean
onKeyRelease
(int key) Handles key release events for all visible widgets.static boolean
onKeyRepeat
(int key) Handles key repeat events for all visible widgets.static void
Updates mouse events and dispatches them to the appropriate widgets.
-
Constructor Details
-
InputWidgetHandler
public InputWidgetHandler()
-
-
Method Details
-
onKeyPress
public static boolean onKeyPress(int key) Handles key press events for all visible widgets.- Parameters:
key
- the code of the key that was pressed- Returns:
- returns true by default.
-
onKeyRepeat
public static boolean onKeyRepeat(int key) Handles key repeat events for all visible widgets.- Parameters:
key
- the code of the key that is being repeatedly pressed- Returns:
- returns true by default.
-
onKeyRelease
public static boolean onKeyRelease(int key) Handles key release events for all visible widgets.- Parameters:
key
- the code of the key that was released- Returns:
- returns true by default.
-
updateMouseEvent
public static void updateMouseEvent()Updates mouse events and dispatches them to the appropriate widgets. Processes mouse movement, button presses/releases, and wheel scrolling.
-