Luna::HID::get_controller_state

ControllerInputState get_controller_state(u32 index)

Fetches the input state of the specified controller.

Parameters

  • in index

    The 0-based index of controller.

Return value

Returns the state of the specified controller. If controller input is not supported on this platform or the controller at the specified index is not connected, returns one structure with all values set to 0.