CommonLibSSE NG
Loading...
Searching...
No Matches
XInputAPI.h
Go to the documentation of this file.
1#pragma once
2
3// TODO: This should probably be behind some sort of pragma that allows linking with xinput
4namespace RE::XInput
5{
7 {
8 std::uint16_t wButtons;
9 std::byte bLeftTrigger;
10 std::byte bRightTrigger;
11 std::int16_t sThumbLX;
12 std::int16_t sThumbLY;
13 std::int16_t sThumbRX;
14 std::int16_t sThumbRY;
15 };
18 {
19 std::uint32_t dwPacketNumber;
21 };
24 {
25 std::uint16_t VirtualKey;
26 std::uint16_t Unicode;
27 std::uint16_t Flags;
28 std::uint8_t UserIndex;
29 std::uint8_t HidCode;
30 };
33 {
34 std::uint16_t wLeftMotorSpeed;
35 std::uint16_t wRightMotorSpeed;
36 };
38
40 {
41 std::uint8_t Type;
42 std::uint8_t SubType;
43 std::uint16_t Flags;
46 };
48
49 enum XInputButton : std::uint16_t
50 {
64 XINPUT_GAMEPAD_Y = 0x8000
65 };
66 static constexpr std::uint16_t XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE = 7849;
67 static constexpr std::uint16_t XINPUT_GAMEPAD_RIGHT_THUMB_DEADZONE = 8689;
68 static constexpr std::uint8_t XINPUT_GAMEPAD_TRIGGER_THRESHOLD = 30;
69
70 static constexpr std::uint16_t XINPUT_BUTTON_MASK = XINPUT_GAMEPAD_DPAD_UP |
84}
Definition XInputAPI.h:5
static constexpr std::uint16_t XINPUT_GAMEPAD_RIGHT_THUMB_DEADZONE
Definition XInputAPI.h:67
static constexpr std::uint16_t XINPUT_BUTTON_MASK
Definition XInputAPI.h:70
static constexpr std::uint16_t XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE
Definition XInputAPI.h:66
static constexpr std::uint8_t XINPUT_GAMEPAD_TRIGGER_THRESHOLD
Definition XInputAPI.h:68
XInputButton
Definition XInputAPI.h:50
@ XINPUT_GAMEPAD_X
Definition XInputAPI.h:63
@ XINPUT_GAMEPAD_START
Definition XInputAPI.h:55
@ XINPUT_GAMEPAD_DPAD_LEFT
Definition XInputAPI.h:53
@ XINPUT_GAMEPAD_Y
Definition XInputAPI.h:64
@ XINPUT_GAMEPAD_DPAD_DOWN
Definition XInputAPI.h:52
@ XINPUT_GAMEPAD_LEFT_THUMB
Definition XInputAPI.h:57
@ XINPUT_GAMEPAD_BACK
Definition XInputAPI.h:56
@ XINPUT_GAMEPAD_LEFT_SHOULDER
Definition XInputAPI.h:59
@ XINPUT_GAMEPAD_DPAD_UP
Definition XInputAPI.h:51
@ XINPUT_GAMEPAD_DPAD_RIGHT
Definition XInputAPI.h:54
@ XINPUT_GAMEPAD_RIGHT_SHOULDER
Definition XInputAPI.h:60
@ XINPUT_GAMEPAD_RIGHT_THUMB
Definition XInputAPI.h:58
@ XINPUT_GAMEPAD_A
Definition XInputAPI.h:61
@ XINPUT_GAMEPAD_B
Definition XInputAPI.h:62
Definition XInputAPI.h:40
std::uint8_t SubType
Definition XInputAPI.h:42
std::uint8_t Type
Definition XInputAPI.h:41
XINPUT_GAMEPAD Gamepad
Definition XInputAPI.h:44
std::uint16_t Flags
Definition XInputAPI.h:43
XINPUT_VIBRATION Vibration
Definition XInputAPI.h:45
Definition XInputAPI.h:7
std::int16_t sThumbRY
Definition XInputAPI.h:14
std::byte bLeftTrigger
Definition XInputAPI.h:9
std::int16_t sThumbLY
Definition XInputAPI.h:12
std::int16_t sThumbRX
Definition XInputAPI.h:13
std::byte bRightTrigger
Definition XInputAPI.h:10
std::int16_t sThumbLX
Definition XInputAPI.h:11
std::uint16_t wButtons
Definition XInputAPI.h:8
Definition XInputAPI.h:24
std::uint16_t Unicode
Definition XInputAPI.h:26
std::uint16_t Flags
Definition XInputAPI.h:27
std::uint16_t VirtualKey
Definition XInputAPI.h:25
std::uint8_t HidCode
Definition XInputAPI.h:29
std::uint8_t UserIndex
Definition XInputAPI.h:28
Definition XInputAPI.h:18
__XINPUT_GAMEPAD Gamepad
Definition XInputAPI.h:20
std::uint32_t dwPacketNumber
Definition XInputAPI.h:19
Definition XInputAPI.h:33
std::uint16_t wLeftMotorSpeed
Definition XInputAPI.h:34
std::uint16_t wRightMotorSpeed
Definition XInputAPI.h:35