|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Declarations for inputtino mouse input handling. More...
#include <boost/locale.hpp>#include <inputtino/input.hpp>#include <libevdev/libevdev.h>#include "inputtino_common.h"#include "src/platform/common.h"Go to the source code of this file.
Functions | |
| void | platf::mouse::button (input_raw_t *raw, int button, bool release) |
| Press or release a virtual mouse button. | |
| util::point_t | platf::mouse::get_location (input_raw_t *raw) |
| Return the current virtual pointer location. | |
| void | platf::mouse::hscroll (input_raw_t *raw, int high_res_distance) |
| Apply a horizontal scroll event to the virtual mouse. | |
| void | platf::mouse::move (input_raw_t *raw, int deltaX, int deltaY) |
| Apply a relative pointer movement to the virtual mouse. | |
| void | platf::mouse::move_abs (input_raw_t *raw, const touch_port_t &touch_port, float x, float y) |
| Move abs using the backend coordinate system. | |
| void | platf::mouse::scroll (input_raw_t *raw, int high_res_distance) |
| Apply a vertical scroll event to the virtual mouse. | |
Declarations for inputtino mouse input handling.
| void platf::mouse::button | ( | input_raw_t * | raw, |
| int | button, | ||
| bool | release ) |
Press or release a virtual mouse button.
| raw | Platform-specific input backend state. |
| button | Mouse button identifier to press or release. |
| release | Whether the key or button event is a release. |
| util::point_t platf::mouse::get_location | ( | input_raw_t * | raw | ) |
Return the current virtual pointer location.
| raw | Platform-specific input backend state. |
| void platf::mouse::hscroll | ( | input_raw_t * | raw, |
| int | high_res_distance ) |
Apply a horizontal scroll event to the virtual mouse.
| raw | Platform-specific input backend state. |
| high_res_distance | High-resolution scroll distance reported by the client. |
| void platf::mouse::move | ( | input_raw_t * | raw, |
| int | deltaX, | ||
| int | deltaY ) |
Apply a relative pointer movement to the virtual mouse.
| raw | Platform-specific input backend state. |
| deltaX | Horizontal relative movement in client coordinates. |
| deltaY | Vertical relative movement in client coordinates. |
| void platf::mouse::move_abs | ( | input_raw_t * | raw, |
| const touch_port_t & | touch_port, | ||
| float | x, | ||
| float | y ) |
Move abs using the backend coordinate system.
Move the pointer to an absolute client-provided touch coordinate.
| raw | Platform-specific input backend state. |
| touch_port | Touch coordinate bounds used for scaling. |
| x | Horizontal absolute coordinate from the client. |
| y | Vertical absolute coordinate from the client. |
| void platf::mouse::scroll | ( | input_raw_t * | raw, |
| int | high_res_distance ) |
Apply a vertical scroll event to the virtual mouse.
| raw | Platform-specific input backend state. |
| high_res_distance | High-resolution scroll distance reported by the client. |