Interface JoystickConnectionListener


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

    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

    • onConnected

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

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