Interface JoystickConnectionListener


public interface JoystickConnectionListener
Listens for the state of a joystick connection.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    Occurs when a new joystick has been detected.
    void
    Occurs when an existing joystick has been disconnected.
  • Method Details Link icon

    • onConnected Link icon

      void onConnected(Joystick joystick)
      Occurs when a new joystick has been detected.
      Parameters:
      joystick - the joystick that has been detected.
    • onDisconnected Link icon

      void onDisconnected(Joystick joystick)
      Occurs when an existing joystick has been disconnected.
      Parameters:
      joystick - the joystick that has been disconnected.