XInputGetState function xinput

int XInputGetState(
  1. int dwUserIndex,
  2. Pointer<XINPUT_STATE> pState
)

Retrieves the current state of the specified controller.

To learn more, see learn.microsoft.com/windows/win32/api/xinput/nf-xinput-xinputgetstate.

Implementation

@pragma('vm:prefer-inline')
int XInputGetState(int dwUserIndex, Pointer<XINPUT_STATE> pState) =>
    _XInputGetState(dwUserIndex, pState);