11 #include "games/controllers/ControllerTypes.h" 12 #include "input/mouse/interfaces/IMouseInputHandler.h" 13 #include "peripherals/PeripheralTypes.h" 19 class CControllerActivity;
35 void ClearButtonState();
38 float GetActivation()
const;
39 ControllerPtr Appearance()
const {
return m_controllerAppearance; }
49 static INPUT::INTERCARDINAL_DIRECTION GetPointerDirection(
int differenceX,
int differenceY);
52 const PERIPHERALS::PeripheralPtr m_peripheral;
55 std::unique_ptr<CControllerActivity> m_mouseActivity;
59 bool m_bStarted{
false};
std::string ControllerID() const override
The controller profile for this mouse input handler.
Definition: AgentMouse.cpp:61
std::string ButtonName
Name of a mouse button.
Definition: MouseTypes.h:45
void OnInputFrame() override
Called at the end of the frame that provided input.
Definition: AgentMouse.cpp:83
Definition: AudioDecoder.h:18
Handles mouse events for game agent functionality.
Definition: AgentMouse.h:26
std::string PointerName
Name of the mouse pointer.
Definition: MouseTypes.h:57
std::shared_ptr< CController > ControllerPtr
Smart pointer to a game controller (CController)
Definition: ControllerTypes.h:25
bool OnMotion(const MOUSE::PointerName &relpointer, int differenceX, int differenceY) override
A relative pointer has moved.
Definition: AgentMouse.cpp:66
void OnButtonRelease(const MOUSE::ButtonName &button) override
A mouse button has been released.
Definition: AgentMouse.cpp:78
bool OnButtonPress(const MOUSE::ButtonName &button) override
A mouse button has been pressed.
Definition: AgentMouse.cpp:72