|
Sunshine master
Self-hosted game stream host for Moonlight.
|
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 "inputtino_seat.h"#include "src/config.h"#include "src/logging.h"#include "src/platform/common.h"#include "src/utility.h"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 } |
| Enumerates supported gamepad status options. More... | |
Functions | |
| int | platf::gamepad::alloc (input_raw_t *raw, const gamepad_id_t &id, const gamepad_arrival_t &metadata, feedback_queue_t feedback_queue) |
| Allocate and initialize platform input state for a stream. | |
| void | platf::gamepad::battery (input_raw_t *raw, const gamepad_battery_t &battery) |
| Apply controller battery status to the backend device. | |
| auto | platf::gamepad::create_ds5 (int globalIndex) |
| Create an inputtino DualSense controller. | |
| auto | platf::gamepad::create_switch () |
| Create an inputtino Nintendo Switch Pro controller. | |
| auto | platf::gamepad::create_xbox_one () |
| Create xbox one. | |
| void | platf::gamepad::free (input_raw_t *raw, int nr) |
| Release backend resources for the indexed gamepad. | |
| void | platf::gamepad::motion (input_raw_t *raw, const gamepad_motion_t &motion) |
| Apply controller motion sensor data to the backend device. | |
| std::vector< supported_gamepad_t > & | platf::gamepad::supported_gamepads (input_t *input) |
| Return the virtual gamepad types supported by inputtino. | |
| void | platf::gamepad::touch (input_raw_t *raw, const gamepad_touch_t &touch) |
| Apply controller touchpad data to the backend device. | |
| void | platf::gamepad::update (input_raw_t *raw, int nr, const gamepad_state_t &gamepad_state) |
| Apply the supplied state update to the platform backend. | |
Definitions for inputtino gamepad input handling.
| int platf::gamepad::alloc | ( | input_raw_t * | raw, |
| const gamepad_id_t & | id, | ||
| const gamepad_arrival_t & | metadata, | ||
| feedback_queue_t | feedback_queue ) |
Allocate and initialize platform input state for a stream.
| raw | Platform-specific input backend state. |
| id | Identifier for the controller, session, display, or resource. |
| metadata | Output structure populated with HDR metadata. |
| feedback_queue | Feedback queue. |
| void platf::gamepad::battery | ( | input_raw_t * | raw, |
| const gamepad_battery_t & | battery ) |
Apply controller battery status to the backend device.
| raw | Platform-specific input backend state. |
| battery | Battery status data reported by the virtual device. |
| auto platf::gamepad::create_ds5 | ( | int | globalIndex | ) |
Create an inputtino DualSense controller.
| globalIndex | Global index. |
| auto platf::gamepad::create_switch | ( | ) |
Create an inputtino Nintendo Switch Pro controller.
| auto platf::gamepad::create_xbox_one | ( | ) |
Create xbox one.
| void platf::gamepad::free | ( | input_raw_t * | raw, |
| int | nr ) |
Release backend resources for the indexed gamepad.
| raw | Platform-specific input backend state. |
| nr | Controller index assigned by the client. |
| void platf::gamepad::motion | ( | input_raw_t * | raw, |
| const gamepad_motion_t & | motion ) |
Apply controller motion sensor data to the backend device.
| raw | Platform-specific input backend state. |
| motion | Motion sensor data to apply to the virtual device. |
| std::vector< supported_gamepad_t > & platf::gamepad::supported_gamepads | ( | input_t * | input | ) |
Return the virtual gamepad types supported by inputtino.
Return gamepad slots supported by the inputtino backend.
| input | Platform input backend that receives the event. |
| void platf::gamepad::touch | ( | input_raw_t * | raw, |
| const gamepad_touch_t & | touch ) |
Apply controller touchpad data to the backend device.
| raw | Platform-specific input backend state. |
| touch | Touch event data to apply to the virtual device. |
| void platf::gamepad::update | ( | input_raw_t * | raw, |
| int | nr, | ||
| const gamepad_state_t & | gamepad_state ) |
Apply the supplied state update to the platform backend.
| raw | Platform-specific input backend state. |
| nr | Controller index assigned by the client. |
| gamepad_state | Gamepad state. |