Package com.avrix.ui

Class InputWidgetHandler

java.lang.Object
com.avrix.ui.InputWidgetHandler

public class InputWidgetHandler extends Object
Handling input events for widgets
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.