Sunshine v2025.118.151840
Self-hosted game stream host for Moonlight.
inputtino_gamepad.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <boost/locale.hpp>
8#include <inputtino/input.hpp>
9#include <libevdev/libevdev.h>
10
11#include "src/platform/common.h"
12
13#include "inputtino_common.h"
14
15using namespace std::literals;
16
17namespace platf::gamepad {
18
24
25 int
26 alloc(input_raw_t *raw, const gamepad_id_t &id, const gamepad_arrival_t &metadata, feedback_queue_t feedback_queue);
27
28 void
29 free(input_raw_t *raw, int nr);
30
31 void
32 update(input_raw_t *raw, int nr, const gamepad_state_t &gamepad_state);
33
34 void
35 touch(input_raw_t *raw, const gamepad_touch_t &touch);
36
37 void
38 motion(input_raw_t *raw, const gamepad_motion_t &motion);
39
40 void
41 battery(input_raw_t *raw, const gamepad_battery_t &battery);
42
43 std::vector<supported_gamepad_t> &
45} // namespace platf::gamepad
Definition utility.h:496
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:150
Declarations for inputtino common input handling.
ControllerType
Definition inputtino_gamepad.h:19
@ XboxOneWired
Xbox One Wired Controller.
Definition inputtino_gamepad.h:20
@ DualSenseWired
DualSense Wired Controller.
Definition inputtino_gamepad.h:21
@ SwitchProWired
Switch Pro Wired Controller.
Definition inputtino_gamepad.h:22
Definition common.h:280
Definition common.h:306
Definition common.h:269
Definition common.h:295
Definition common.h:259
Definition common.h:286
Definition inputtino_common.h:28