Sunshine master
Self-hosted game stream host for Moonlight.
inputtino_mouse.cpp File Reference

Definitions for inputtino mouse input handling. More...

#include <boost/locale.hpp>
#include <inputtino/input.hpp>
#include <libevdev/libevdev.h>
#include "inputtino_common.h"
#include "inputtino_mouse.h"
#include "src/config.h"
#include "src/logging.h"
#include "src/platform/common.h"
#include "src/utility.h"
Include dependency graph for inputtino_mouse.cpp:

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.
 

Detailed Description

Definitions for inputtino mouse input handling.

Function Documentation

◆ button()

void platf::mouse::button ( input_raw_t * raw,
int button,
bool release )

Press or release a virtual mouse button.

Parameters
rawPlatform-specific input backend state.
buttonMouse button identifier to press or release.
releaseWhether the key or button event is a release.

◆ get_location()

util::point_t platf::mouse::get_location ( input_raw_t * raw)

Return the current virtual pointer location.

Parameters
rawPlatform-specific input backend state.
Returns
Current virtual pointer location in screen coordinates.

◆ hscroll()

void platf::mouse::hscroll ( input_raw_t * raw,
int high_res_distance )

Apply a horizontal scroll event to the virtual mouse.

Parameters
rawPlatform-specific input backend state.
high_res_distanceHigh-resolution scroll distance reported by the client.

◆ move()

void platf::mouse::move ( input_raw_t * raw,
int deltaX,
int deltaY )

Apply a relative pointer movement to the virtual mouse.

Parameters
rawPlatform-specific input backend state.
deltaXHorizontal relative movement in client coordinates.
deltaYVertical relative movement in client coordinates.

◆ move_abs()

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.

Parameters
rawPlatform-specific input backend state.
touch_portTouch coordinate bounds used for scaling.
xHorizontal absolute coordinate from the client.
yVertical absolute coordinate from the client.

◆ scroll()

void platf::mouse::scroll ( input_raw_t * raw,
int high_res_distance )

Apply a vertical scroll event to the virtual mouse.

Parameters
rawPlatform-specific input backend state.
high_res_distanceHigh-resolution scroll distance reported by the client.