class Gamepad

Represents a single hardware gamepad.

Used by the Input to report gamepad input events.

Public

Constructors

Gamepad

Gamepad(const String &name, const GamepadInfo &gamepadInfo, Input *owner)

Methods

~Gamepad

~Gamepad()

GetName

String GetName() const

Returns the name of the device.

Capture

void Capture()

Captures the input since the last call and triggers the events on the parent Input.

Private

Methods

ChangeCaptureContext

void ChangeCaptureContext(u64 windowHandle)

Changes the capture context.

Should be called when focus is moved to a new window.

Fields

mName

String mName

mOwner

Input * mOwner

m

Pimpl * m