Function EventDispatcher.onJoystickButtonDown

Called when a joystick button is pressed.

void onJoystickButtonDown(
  uint deviceIndex,
  int button
);