|
kodi
|
Handles mouse events for games. More...
#include <GameClientMouse.h>


Public Member Functions | |
| CGameClientMouse (CGameClient &gameClient, std::string controllerId, MOUSE::IMouseInputProvider *inputProvider) | |
| Constructor registers for mouse events at CInputManager. More... | |
| ~CGameClientMouse () override | |
| Destructor unregisters from mouse events from CInputManager. | |
| std::string | ControllerID () const override |
| The controller profile for this mouse input handler. More... | |
| bool | OnMotion (const std::string &relpointer, int dx, int dy) override |
| A relative pointer has moved. More... | |
| bool | OnButtonPress (const std::string &button) override |
| A mouse button has been pressed. More... | |
| void | OnButtonRelease (const std::string &button) override |
| A mouse button has been released. More... | |
| void | OnInputFrame () override |
| Called at the end of the frame that provided input. More... | |
| const std::string & | GetControllerID () const |
| const PERIPHERALS::PeripheralPtr & | GetSource () const |
| float | GetActivation () const |
| void | SetSource (PERIPHERALS::PeripheralPtr sourcePeripheral) |
| void | ClearSource () |
Handles mouse events for games.
Listens to mouse events and forwards them to the games (as game_input_event).
| CGameClientMouse::CGameClientMouse | ( | CGameClient & | gameClient, |
| std::string | controllerId, | ||
| MOUSE::IMouseInputProvider * | inputProvider | ||
| ) |
Constructor registers for mouse events at CInputManager.
| gameClient | The game client implementation. |
| controllerId | The controller profile used for input |
| dllStruct | The emulator or game to which the events are sent. |
| inputProvider | The interface providing us with mouse input. |
|
overridevirtual |
The controller profile for this mouse input handler.
Implements KODI::MOUSE::IMouseInputHandler.
|
overridevirtual |
A mouse button has been pressed.
| button | The name of the feature being pressed |
Implements KODI::MOUSE::IMouseInputHandler.
|
overridevirtual |
A mouse button has been released.
| button | The name of the feature being released |
Implements KODI::MOUSE::IMouseInputHandler.
|
overridevirtual |
Called at the end of the frame that provided input.
This can be as a result of a pointer update, a button press, or a button release. All three events will result in a call to OnInputFrame().
Implements KODI::MOUSE::IMouseInputHandler.
|
overridevirtual |
A relative pointer has moved.
| relpointer | The name of the relative pointer being moved |
| dx | The relative x coordinate of motion |
| dy | The relative y coordinate of motion |
The mouse uses a left-handed (graphics) cartesian coordinate system. Positive X is right, positive Y is down.
Implements KODI::MOUSE::IMouseInputHandler.
1.8.13