Sunshine latest
Self-hosted game stream host for Moonlight.
inputtino_gamepad.cpp File Reference

Definitions for inputtino gamepad input handling. More...

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

Enumerations

enum  platf::gamepad::GamepadStatus { platf::gamepad::UHID_NOT_AVAILABLE = 0 , platf::gamepad::UINPUT_NOT_AVAILABLE , platf::gamepad::XINPUT_NOT_AVAILABLE , platf::gamepad::GAMEPAD_STATUS }
 

Functions

int platf::gamepad::alloc (input_raw_t *raw, const gamepad_id_t &id, const gamepad_arrival_t &metadata, feedback_queue_t feedback_queue)
 
void platf::gamepad::battery (input_raw_t *raw, const gamepad_battery_t &battery)
 
auto platf::gamepad::create_ds5 ()
 
auto platf::gamepad::create_switch ()
 
auto platf::gamepad::create_xbox_one ()
 
void platf::gamepad::free (input_raw_t *raw, int nr)
 
void platf::gamepad::motion (input_raw_t *raw, const gamepad_motion_t &motion)
 
std::vector< supported_gamepad_t > & platf::gamepad::supported_gamepads (input_t *input)
 
void platf::gamepad::touch (input_raw_t *raw, const gamepad_touch_t &touch)
 
void platf::gamepad::update (input_raw_t *raw, int nr, const gamepad_state_t &gamepad_state)
 

Detailed Description

Definitions for inputtino gamepad input handling.

Enumeration Type Documentation

◆ GamepadStatus

Enumerator
UHID_NOT_AVAILABLE 

UHID is not available.

UINPUT_NOT_AVAILABLE 

UINPUT is not available.

XINPUT_NOT_AVAILABLE 

XINPUT is not available.

GAMEPAD_STATUS 

Helper to indicate the number of status.