91 bool OpenGamepad(SDL_JoystickID
id);
97 float m_mouseWheel = 0.0f;
Configured action sources, player devices, and stick dead zone for an input owner.
Definition controls.h:248
The settings of BossRally.ini.
Definition config.h:18
Input history and haptic resources for one active input configuration.
Definition raceinput.h:10
Definition assetimport.h:11
void IgnoreKeyUntilReleased(SDL_Scancode scancode)
Report a key as up to IsKeyDown() until it is released, for a key a shortcut of the window consumed,...
void SetSecondControllerState(const ControllerState &state)
Set the state of the second controller the race reads for its second player, until the next call.
void SetScriptedKeys(std::vector< int > scancodes)
Add simulated key presses alongside physical keyboard input, for tests.
PlayerDevices AssignedDevices(std::size_t player, std::size_t players)
Resolve the Player1 and Player2 keys of the Controls section against the open gamepads.
void ClearMouseWheel()
Discard the wheel of the mouse scrolled since TakeMouseWheel() last read it.
std::int8_t ScaleStickAxis(std::int16_t axis)
Scale an SDL axis of -32768 to 32767 to the range of the controller stick.
ControllerState ReadRacePad(const PlayerDevices &devices)
Read the second player of a race as the console reads a pad: the race actions of the Controls section...
bool IsKeyDown(SDL_Scancode scancode)
The state of one controller port, as libultra reports a pad.
Definition controller.h:27
The devices that drive one player.
Definition input.h:16
std::vector< SDL_Gamepad * > gamepads
Borrowed gamepads, valid until disconnection or InputBindings destruction.
Definition input.h:19
bool keyboard
Definition input.h:17