48 std::shared_ptr<Window> GetWindow()
const;
Base class for mappings that bind a keyboard key to any controller input.
Definition KeyboardKeyToAnyMapping.h:17
bool mKeyPressed
Definition KeyboardKeyToAnyMapping.h:44
bool ProcessKeyboardEvent(KbEventType eventType, KbScancode scancode)
Processes a raw keyboard event and updates the internal pressed state.
std::string GetPhysicalDeviceName() override
Returns the human-readable name of the keyboard device.
KeyboardKeyToAnyMapping(KbScancode scancode, std::shared_ptr< Window > window)
Constructs a keyboard-key mapping for the given scan code.
std::string GetPhysicalInputName() override
Returns the human-readable name of the bound key.
virtual ~KeyboardKeyToAnyMapping()
Destructor.
std::shared_ptr< Window > mWindow
Definition KeyboardKeyToAnyMapping.h:45
KbScancode mKeyboardScancode
Definition KeyboardKeyToAnyMapping.h:43
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14
KbScancode
Platform-independent keyboard scan codes used by the input mapping system.
Definition KeyboardScancodes.h:26
KbEventType
Identifies the type of a keyboard event delivered to the input mapping system.
Definition KeyboardScancodes.h:12