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
-
NoneRepresents no binding. Value: 0. -
DpadUpD-pad up direction. Value: 1. -
DpadDownD-pad down direction. Value: 2. -
DpadLeftD-pad left direction. Value: 3. -
DpadRightD-pad right direction. Value: 4. -
NorthFace button “north” (alias for common controller layouts). Value: 5. -
EastFace button “east”. Value: 6. -
SouthFace button “south”. Value: 7. -
WestFace button “west”. Value: 8. -
LeftShoulderLeft shoulder (bumper) button. Value: 11. -
RightShoulderRight shoulder (bumper) button. Value: 12. -
StartStart / Menu button. Value: 13. -
SelectSelect / Back button. Value: 14. -
LeftTriggerLeft trigger button/axis activation. Value: 33. -
RightTriggerRight trigger button/axis activation. Value: 34. -
LeftStickUpUp direction on the left analog stick. Value: 35. -
LeftStickDownDown direction on the left analog stick. Value: 36. -
LeftStickLeftLeft direction on the left analog stick. Value: 37. -
LeftStickRightRight direction on the left analog stick. Value: 38. -
RightStickUpUp direction on the right analog stick. Value: 39. -
RightStickDownDown direction on the right analog stick. Value: 40. -
RightStickLeftLeft direction on the right analog stick. Value: 41. -
RightStickRightRight direction on the right analog stick. Value: 42. -
YAlias for North (common Xbox label). Value: 5. -
BAlias for East (common Xbox label). Value: 6. -
AAlias for South (common Xbox label). Value: 7. -
XAlias for West (common Xbox label). Value: 8. -
TriangleAlias for North (common PlayStation label). Value: 5. -
CircleAlias for East (common PlayStation label). Value: 6. -
CrossAlias for South (common PlayStation label). Value: 7. -
SquareAlias 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.