mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-04-03 11:09:40 -04:00
Merge pull request #94 from JarrodDoyle/master
Update GamepadAxis to match Raylib and fix off-by-one error
This commit is contained in:
commit
c81b1537a2
@ -621,20 +621,12 @@ namespace Raylib_cs
|
|||||||
/// <summary>Gamepad axis</summary>
|
/// <summary>Gamepad axis</summary>
|
||||||
public enum GamepadAxis
|
public enum GamepadAxis
|
||||||
{
|
{
|
||||||
// This is here just for error checking
|
GAMEPAD_AXIS_LEFT_X = 0, // Gamepad left stick X axis
|
||||||
GAMEPAD_AXIS_UNKNOWN = 0,
|
GAMEPAD_AXIS_LEFT_Y = 1, // Gamepad left stick Y axis
|
||||||
|
GAMEPAD_AXIS_RIGHT_X = 2, // Gamepad right stick X axis
|
||||||
// Left stick
|
GAMEPAD_AXIS_RIGHT_Y = 3, // Gamepad right stick Y axis
|
||||||
GAMEPAD_AXIS_LEFT_X,
|
GAMEPAD_AXIS_LEFT_TRIGGER = 4, // Gamepad back trigger left, pressure level: [1..-1]
|
||||||
GAMEPAD_AXIS_LEFT_Y,
|
GAMEPAD_AXIS_RIGHT_TRIGGER = 5 // Gamepad back trigger right, pressure level: [1..-1]
|
||||||
|
|
||||||
// Right stick
|
|
||||||
GAMEPAD_AXIS_RIGHT_X,
|
|
||||||
GAMEPAD_AXIS_RIGHT_Y,
|
|
||||||
|
|
||||||
// Pressure levels for the back triggers
|
|
||||||
GAMEPAD_AXIS_LEFT_TRIGGER, // [1..-1] (pressure-level)
|
|
||||||
GAMEPAD_AXIS_RIGHT_TRIGGER // [1..-1] (pressure-level)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Material map index</summary>
|
/// <summary>Material map index</summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user