Class InputDevice

java.lang.Object
com.simsilica.lemur.input.InputDevice

public class InputDevice extends Object
Represents a logical input device like a specific game controller.
  • Field Details

  • Constructor Details

  • Method Details

    • joystick

      public static InputDevice joystick(int id)
      Creates a new logical joystick with the specified ID. Note: to map reported events IDs should be one-based, ie: first joystick will be reported as InputDevice(1), second as InputDevice(2), etc.
    • button

      public InputDevice.DeviceButton button(Button b)
      Return the InputDevice-specific version of the specified Button.
    • axis

      public InputDevice.DeviceAxis axis(Axis a)
      Return the InputDevice-specific version of the specified Axis.
    • getId

      public String getId()
    • getName

      public String getName()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object