11 #include "games/controllers/ControllerTypes.h" 12 #include "input/keyboard/interfaces/IKeyboardInputHandler.h" 13 #include "peripherals/PeripheralTypes.h" 19 class CControllerActivity;
35 void ClearButtonState();
38 float GetActivation()
const;
39 ControllerPtr Appearance()
const {
return m_controllerAppearance; }
46 KEYBOARD::Modifier mod,
47 uint32_t unicode)
override;
51 const PERIPHERALS::PeripheralPtr m_peripheral;
54 std::unique_ptr<CControllerActivity> m_keyboardActivity;
std::string KeyName
Name of a hardware-indendent symbol representing a key.
Definition: KeyboardTypes.h:33
void OnKeyRelease(const KEYBOARD::KeyName &key, KEYBOARD::Modifier mod, uint32_t unicode) override
A key has been released.
Definition: AgentKeyboard.cpp:81
bool OnKeyPress(const KEYBOARD::KeyName &key, KEYBOARD::Modifier mod, uint32_t unicode) override
A key has been pressed.
Definition: AgentKeyboard.cpp:71
Definition: AudioDecoder.h:18
std::shared_ptr< CController > ControllerPtr
Smart pointer to a game controller (CController)
Definition: ControllerTypes.h:25
Handles keyboard events for game agent functionality.
Definition: AgentKeyboard.h:26
std::string ControllerID() const override
The add-on ID of the keyboard's controller profile.
Definition: AgentKeyboard.cpp:61
bool HasKey(const KEYBOARD::KeyName &key) const override
Return true if the input handler accepts the given key.
Definition: AgentKeyboard.cpp:66