classafGamepad::Gamepad
sys::Obj afGamepad::Gamepad
Represents a Gamepad controller. Use listHidDevices() to obtain an instance.
Float buttonThreshold := 0.6fA number between 0 - 1, over which a button value is considered to be pressed. Used to created
buttonUpandbuttonDownevent data.- listGamepads
static Gamepad[] listGamepads()Lists all supported Gamepad controllers.
- listHidDevices
static Gamepad[] listHidDevices()Lists all USB-HID devices. Some may be Gamepad controllers, some may not be.
- manufacturer
const Str? manufacturerName of the manufacturer.
- onDisconnect
|Gamepad? onDisconnectListener that's called when the Gamepad is disconnected / unplugged.
- onInput
|GamepadEvent? onInputListener that's called when the Gamepad input changes.
- path
const Str pathA platform dependent path that describes the
physicalpath through hubs and ports to the device.- prodcutDesc
const Str? prodcutDescProduct description.
- productId
const Int productIdThe 16 bit product ID.
- vendorId
const Int vendorIdThe 16 bit vendor ID.