class
#include <nCine/Backends/SdlInputManager.h>
SdlInputManager Class for parsing and dispatching SDL input events.
Base classes
- class nCine::IInputManager
- Interface for parsing and dispatching input events.
Public static functions
- static auto shouldQuitOnRequest() -> bool
- static void parseEvent(const SDL_Event& event)
Constructors, destructors, conversion operators
- SdlInputManager()
- The constructor takes care of opening available joysticks.
- ~SdlInputManager()
- The destructor releases every opened joystick.
Public functions
- auto mouseState() const -> const MouseState& override
- Returns current mouse state.
- auto keyboardState() const -> const KeyboardState& override
- Returns current keyboard state.
- auto getClipboardText() const -> String override
- Returns text from the clipboard if any.
- auto getKeyName(Keys key) const -> StringView override
- Returns display name of the specified key.
- auto isJoyPresent(int joyId) const -> bool override
- Returns true if the specified joystick is connected.
- auto joyName(int joyId) const -> const char* override
- Returns the name of the specified joystick.
- auto joyGuid(int joyId) const -> const JoystickGuid override
- Returns the GUID of the specified joystick.
- auto joyNumButtons(int joyId) const -> int override
- Returns the number of available buttons for the specified joystick.
- auto joyNumHats(int joyId) const -> int override
- Returns the number of available hats for the specified joystick.
- auto joyNumAxes(int joyId) const -> int override
- Returns the number of available axes for the specified joystick.
- auto joystickState(int joyId) const -> const JoystickState& override
- Returns the state of the joystick.
- auto joystickRumble(int joyId, float lowFrequency, float highFrequency, uint32_t durationMs) -> bool override
- Starts a main rumble effect with specified duration.
- auto joystickRumbleTriggers(int joyId, float left, float right, uint32_t durationMs) -> bool override
- Starts a rumble effect on triggers with specified duration.
- void setCursor(Cursor cursor) override
- Sets the mouse cursor mode.