Game.Input.BindingGamepad
Assembly: Assembly-CSharp
Namespace: Game.Input
Type: enum
Base: System.Int32
Summary:
BindingGamepad is an enumeration that represents logical gamepad button and directional inputs used by the game's input system. Values cover D-pad directions, face buttons (with aliases for different controller naming schemes like Xbox and PlayStation), shoulder buttons, start/select, triggers, and stick directional inputs. Some values are aliased (multiple names map to the same numeric value) to provide compatibility with different controller terminologies (e.g., Y/Triangle, B/Circle, A/Cross, X/Square).
Fields
-
None
Represents no binding. Value: 0. -
DpadUp
D-pad up direction. Value: 1. -
DpadDown
D-pad down direction. Value: 2. -
DpadLeft
D-pad left direction. Value: 3. -
DpadRight
D-pad right direction. Value: 4. -
North
Face button “north” (alias for common controller layouts). Value: 5. -
East
Face button “east”. Value: 6. -
South
Face button “south”. Value: 7. -
West
Face button “west”. Value: 8. -
LeftShoulder
Left shoulder (bumper) button. Value: 11. -
RightShoulder
Right shoulder (bumper) button. Value: 12. -
Start
Start / Menu button. Value: 13. -
Select
Select / Back button. Value: 14. -
LeftTrigger
Left trigger button/axis activation. Value: 33. -
RightTrigger
Right trigger button/axis activation. Value: 34. -
LeftStickUp
Up direction on the left analog stick. Value: 35. -
LeftStickDown
Down direction on the left analog stick. Value: 36. -
LeftStickLeft
Left direction on the left analog stick. Value: 37. -
LeftStickRight
Right direction on the left analog stick. Value: 38. -
RightStickUp
Up direction on the right analog stick. Value: 39. -
RightStickDown
Down direction on the right analog stick. Value: 40. -
RightStickLeft
Left direction on the right analog stick. Value: 41. -
RightStickRight
Right direction on the right analog stick. Value: 42. -
Y
Alias for North (common Xbox label). Value: 5. -
B
Alias for East (common Xbox label). Value: 6. -
A
Alias for South (common Xbox label). Value: 7. -
X
Alias for West (common Xbox label). Value: 8. -
Triangle
Alias for North (common PlayStation label). Value: 5. -
Circle
Alias for East (common PlayStation label). Value: 6. -
Cross
Alias for South (common PlayStation label). Value: 7. -
Square
Alias for West (common PlayStation label). Value: 8.
Properties
- This enum type has no properties.
Constructors
- Enums do not expose public constructors. BindingGamepad is backed by System.Int32 and uses the default enum semantics (you can cast integer values to/from BindingGamepad).
Methods
- This enum defines no methods.
Usage Example
// Example: handling a binding value coming from input configuration
BindingGamepad binding = BindingGamepad.A; // or (BindingGamepad)7
switch (binding)
{
case BindingGamepad.DpadUp:
// move selection up
break;
case BindingGamepad.A: // also matches BindingGamepad.South, BindingGamepad.Cross
// primary action (confirm)
break;
case BindingGamepad.B: // also matches BindingGamepad.East, BindingGamepad.Circle
// secondary action (cancel)
break;
case BindingGamepad.LeftShoulder:
// do shoulder action
break;
default:
// handle other bindings or None
break;
}
Additional notes: - Several values are intentionally aliased so the same numeric value can be referenced by different controller naming conventions (Xbox: A/B/X/Y, PlayStation: Cross/Circle/Square/Triangle). - Numeric gaps (for example, 9–10 and 15–32) suggest reserved/unused slots or other internal bindings not exposed here. - When reading or storing bindings, cast safely between int and BindingGamepad to persist or compare values.