Sunshine latest
Self-hosted game stream host for Moonlight.
inputtino_gamepad.h
Go to the documentation of this file.
1
5#pragma once
6
7// lib includes
8#include <boost/locale.hpp>
9#include <inputtino/input.hpp>
10#include <libevdev/libevdev.h>
11
12// local includes
13#include "inputtino_common.h"
14#include "src/platform/common.h"
15
16using namespace std::literals;
17
18namespace platf::gamepad {
19
25
26 int alloc(input_raw_t *raw, const gamepad_id_t &id, const gamepad_arrival_t &metadata, feedback_queue_t feedback_queue);
27
28 void free(input_raw_t *raw, int nr);
29
30 void update(input_raw_t *raw, int nr, const gamepad_state_t &gamepad_state);
31
32 void touch(input_raw_t *raw, const gamepad_touch_t &touch);
33
34 void motion(input_raw_t *raw, const gamepad_motion_t &motion);
35
36 void battery(input_raw_t *raw, const gamepad_battery_t &battery);
37
38 std::vector<supported_gamepad_t> &supported_gamepads(input_t *input);
39} // namespace platf::gamepad
Definition utility.h:530
Declarations for common platform specific utilities.
std::vector< supported_gamepad_t > & supported_gamepads(input_t *input)
Gets the supported gamepads for this platform backend.
Definition inputtino.cpp:130
Declarations for inputtino common input handling.
ControllerType
Definition inputtino_gamepad.h:20
@ XboxOneWired
Xbox One Wired Controller.
Definition inputtino_gamepad.h:21
@ DualSenseWired
DualSense Wired Controller.
Definition inputtino_gamepad.h:22
@ SwitchProWired
Switch Pro Wired Controller.
Definition inputtino_gamepad.h:23
Definition common.h:286
Definition common.h:312
Definition common.h:275
Definition common.h:301
Definition common.h:265
Definition common.h:292
Definition inputtino_common.h:30