pushScriptedGamepadInvocation abstract method

void pushScriptedGamepadInvocation({
  1. required int kind,
  2. required int deviceId,
  3. required int buttonMask,
  4. required List<double> buttonValues,
  5. required List<double> axes,
  6. required int mapping,
  7. int changeKind = 0,
  8. int changeIndex = 0,
  9. double changeValue = 0,
})

Push the Lua userdata expected by a ScriptedDrawable's gamepadConnected / gamepadEvent / gamepadDisconnected method. kind is 0 (connected), 1 (event), or 2 (disconnected). changeKind, changeIndex, and changeValue are only consumed when kind is event.

Implementation

void pushScriptedGamepadInvocation({
  required int kind,
  required int deviceId,
  required int buttonMask,
  required List<double> buttonValues,
  required List<double> axes,
  required int mapping,
  int changeKind = 0,
  int changeIndex = 0,
  double changeValue = 0,
});