Sunshine master
Self-hosted game stream host for Moonlight.
inputtino_common.h File Reference

Declarations for inputtino common input handling. More...

#include <boost/locale.hpp>
#include <inputtino/input.hpp>
#include <libevdev/libevdev.h>
#include "src/config.h"
#include "src/logging.h"
#include "src/platform/common.h"
#include "src/platform/linux/input/inputtino_seat.h"
#include "src/utility.h"
Include dependency graph for inputtino_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  platf::client_input_raw_t
 Per-client inputtino devices for touch and pen input. More...
 
struct  platf::input_raw_t
 Global inputtino device handles shared by clients. More...
 
struct  platf::joypad_state
 inputtino joypad collection and its ownership state. More...
 

Typedefs

using platf::joypads_t = std::variant<inputtino::XboxOneJoypad, inputtino::SwitchJoypad, inputtino::PS5Joypad>
 Variant of inputtino virtual gamepad implementations Sunshine can create.
 

Functions

float platf::deg2rad (float degree)
 Convert degrees to radians for controller motion data.
 
std::string platf::inputtino_name_for_seat (std::string_view base_name)
 Append the target seat name to an inputtino device name when needed.
 

Detailed Description

Declarations for inputtino common input handling.

Function Documentation

◆ deg2rad()

float platf::deg2rad ( float degree)
inline

Convert degrees to radians for controller motion data.

Parameters
degreeAngle in degrees to convert.
Returns
Angle in radians.

◆ inputtino_name_for_seat()

std::string platf::inputtino_name_for_seat ( std::string_view base_name)
inline

Append the target seat name to an inputtino device name when needed.

Parameters
base_nameBase uinput device name.
Returns
Device name scoped to the target seat.