classafGamepad::Gamepad

sys::Obj
  afGamepad::Gamepad

Represents a Gamepad controller. Use listHidDevices() to obtain an instance.

buttonThreshold

Source

Float buttonThreshold := 0.6f

A number between 0 - 1, over which a button value is considered to be pressed. Used to created buttonUp and buttonDown event data.

listGamepads

Source

static Gamepad[] listGamepads()

Lists all supported Gamepad controllers.

listHidDevices

Source

static Gamepad[] listHidDevices()

Lists all USB-HID devices. Some may be Gamepad controllers, some may not be.

manufacturer

Source

const Str? manufacturer

Name of the manufacturer.

onDisconnect

Source

|Gamepad? onDisconnect

Listener that's called when the Gamepad is disconnected / unplugged.

onInput

Source

|GamepadEvent? onInput

Listener that's called when the Gamepad input changes.

path

Source

const Str path

A platform dependent path that describes the physical path through hubs and ports to the device.

prodcutDesc

Source

const Str? prodcutDesc

Product description.

productId

Source

const Int productId

The 16 bit product ID.

vendorId

Source

const Int vendorId

The 16 bit vendor ID.