com.qualcomm.robotcore.hardware

## Interface Gamepad.GamepadCallback

- Enclosing class:
    Gamepad

      public static interface Gamepad.GamepadCallback

  Optional callback interface for monitoring changes due to MotionEvents and KeyEvents. This interface can be used to notify you if the gamepad changes due to either a KeyEvent or a MotionEvent. It does not notify you if the gamepad changes for other reasons.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `gamepadChanged(Gamepad gamepad)` This method will be called whenever the gamepad state has changed due to either a KeyEvent or a MotionEvent.

- - ### Method Detail

    - #### gamepadChanged

          void gamepadChanged(Gamepad gamepad)

      This method will be called whenever the gamepad state has changed due to either a KeyEvent or a MotionEvent.
      Parameters:
        `gamepad` - device which state has changed