This commit is contained in:
2026-06-08 17:19:24 +02:00
parent 3e8ce40cc3
commit 948c2304e7
43 changed files with 1243 additions and 1332 deletions

View File

@@ -120,19 +120,19 @@ extension SDL
*/
[AllowDuplicates] public enum GamepadType : c_int
{
Unknown = 0,
Standard,
Xbox360,
Xboxone,
Ps3,
Ps4,
Ps5,
NintendoSwitchPro,
NintendoSwitchJoyconLeft,
NintendoSwitchJoyconRight,
NintendoSwitchJoyconPair,
Gamecube,
Count,
Unknown = 0,
Standard,
Xbox360,
Xboxone,
Ps3,
Ps4,
Ps5,
NintendoSwitchPro,
NintendoSwitchJoyconLeft,
NintendoSwitchJoyconRight,
NintendoSwitchJoyconPair,
Gamecube,
Count,
}
/**
@@ -161,34 +161,34 @@ extension SDL
*/
[AllowDuplicates] public enum GamepadButton : c_int
{
Invalid = -1,
South, /**< Bottom face button (e.g. Xbox A button) */
East, /**< Right face button (e.g. Xbox B button) */
West, /**< Left face button (e.g. Xbox X button) */
North, /**< Top face button (e.g. Xbox Y button) */
Back,
Guide,
Start,
LeftStick,
RightStick,
LeftShoulder,
RightShoulder,
DpadUp,
DpadDown,
DpadLeft,
DpadRight,
Misc1, /**< Additional button (e.g. Xbox Series X share button, PS5 microphone button, Nintendo Switch Pro capture button, Amazon Luna microphone button, Google Stadia capture button) */
RightPaddle1, /**< Upper or primary paddle, under your right hand (e.g. Xbox Elite paddle P1, DualSense Edge RB button, Right Joy-Con SR button) */
LeftPaddle1, /**< Upper or primary paddle, under your left hand (e.g. Xbox Elite paddle P3, DualSense Edge LB button, Left Joy-Con SL button) */
RightPaddle2, /**< Lower or secondary paddle, under your right hand (e.g. Xbox Elite paddle P2, DualSense Edge right Fn button, Right Joy-Con SL button) */
LeftPaddle2, /**< Lower or secondary paddle, under your left hand (e.g. Xbox Elite paddle P4, DualSense Edge left Fn button, Left Joy-Con SR button) */
Touchpad, /**< PS4/PS5 touchpad button */
Misc2, /**< Additional button */
Misc3, /**< Additional button (e.g. Nintendo GameCube left trigger click) */
Misc4, /**< Additional button (e.g. Nintendo GameCube right trigger click) */
Misc5, /**< Additional button */
Misc6, /**< Additional button */
Count,
Invalid = -1,
South, /**< Bottom face button (e.g. Xbox A button) */
East, /**< Right face button (e.g. Xbox B button) */
West, /**< Left face button (e.g. Xbox X button) */
North, /**< Top face button (e.g. Xbox Y button) */
Back,
Guide,
Start,
LeftStick,
RightStick,
LeftShoulder,
RightShoulder,
DpadUp,
DpadDown,
DpadLeft,
DpadRight,
Misc1, /**< Additional button (e.g. Xbox Series X share button, PS5 microphone button, Nintendo Switch Pro capture button, Amazon Luna microphone button, Google Stadia capture button) */
RightPaddle1, /**< Upper or primary paddle, under your right hand (e.g. Xbox Elite paddle P1, DualSense Edge RB button, Right Joy-Con SR button) */
LeftPaddle1, /**< Upper or primary paddle, under your left hand (e.g. Xbox Elite paddle P3, DualSense Edge LB button, Left Joy-Con SL button) */
RightPaddle2, /**< Lower or secondary paddle, under your right hand (e.g. Xbox Elite paddle P2, DualSense Edge right Fn button, Right Joy-Con SL button) */
LeftPaddle2, /**< Lower or secondary paddle, under your left hand (e.g. Xbox Elite paddle P4, DualSense Edge left Fn button, Left Joy-Con SR button) */
Touchpad, /**< PS4/PS5 touchpad button */
Misc2, /**< Additional button */
Misc3, /**< Additional button (e.g. Nintendo GameCube left trigger click) */
Misc4, /**< Additional button (e.g. Nintendo GameCube right trigger click) */
Misc5, /**< Additional button */
Misc6, /**< Additional button */
Count,
}
/**
@@ -204,15 +204,15 @@ extension SDL
*/
[AllowDuplicates] public enum GamepadButtonLabel : c_int
{
Unknown,
A,
B,
X,
Y,
Cross,
Circle,
Square,
Triangle,
Unknown,
A,
B,
X,
Y,
Cross,
Circle,
Square,
Triangle,
}
/**
@@ -231,14 +231,14 @@ extension SDL
*/
[AllowDuplicates] public enum GamepadAxis : c_int
{
Invalid = -1,
Leftx,
Lefty,
Rightx,
Righty,
LeftTrigger,
RightTrigger,
Count,
Invalid = -1,
Leftx,
Lefty,
Rightx,
Righty,
LeftTrigger,
RightTrigger,
Count,
}
/**
@@ -253,10 +253,10 @@ extension SDL
*/
[AllowDuplicates] public enum GamepadBindingType : c_int
{
None = 0,
Button,
Axis,
Hat,
None = 0,
Button,
Axis,
Hat,
}
/**