Enumerations
HidNpadButton
Bitmask values for buttons reported by the HID NPad service.
Note: This is the libnx ordering and is not the same as the
Web Gamepad API button order. When working with the standard
Gamepad.buttons[] array, prefer the
Button enum.
Enumeration Members
| Enumeration Member | Value | Description |
|---|---|---|
A | 1 | A button (right face button on a Pro Controller / Joy-Con grip). |
AnyDown | 8945664 | Bitmask of all buttons that count as "Down" (D-Pad and either stick). |
AnyLeft | 1118208 | Bitmask of all buttons that count as "Left" (D-Pad and either stick). |
AnyRight | 4472832 | Bitmask of all buttons that count as "Right" (D-Pad and either stick). |
AnySL | 83886080 | Bitmask matching SL on either Joy-Con. |
AnySR | 167772160 | Bitmask matching SR on either Joy-Con. |
AnyUp | 2236416 | Bitmask of all buttons that count as "Up" (D-Pad and either stick). |
B | 2 | B button (down face button). |
Down | 32768 | D-Pad Down. |
HandheldLeftB | 1073741824 | B button on a Left NES/HVC controller in Handheld mode. |
L | 64 | L shoulder button. |
LagonCDown | 4 | Down C button on the N64 controller. (Overflows 32-bit; do not use.) |
LagonCLeft | -2147483648 | Left C button on the N64 controller. |
LagonCRight | 2 | Right C button on the N64 controller. (Overflows 32-bit; do not use.) |
LagonCUp | 1 | Up C button on the N64 controller. (Overflows 32-bit; do not use.) |
Left | 4096 | D-Pad Left. |
LeftSL | 16777216 | SL button on a Left Joy-Con (when held sideways). |
LeftSR | 33554432 | SR button on a Left Joy-Con (when held sideways). |
Minus | 2048 | Minus (–) button. |
Palma | 268435456 | Top button on the Poké Ball Plus (Palma) controller. |
Plus | 1024 | Plus (+) button. |
R | 128 | R shoulder button. |
Right | 16384 | D-Pad Right. |
RightSL | 67108864 | SL button on a Right Joy-Con (when held sideways). |
RightSR | 134217728 | SR button on a Right Joy-Con (when held sideways). |
StickL | 16 | Click of the Left Stick. |
StickLDown | 524288 | Pseudo-button: Left Stick tilted Down past the deadzone. |
StickLLeft | 65536 | Pseudo-button: Left Stick tilted Left past the deadzone. |
StickLRight | 262144 | Pseudo-button: Left Stick tilted Right past the deadzone. |
StickLUp | 131072 | Pseudo-button: Left Stick tilted Up past the deadzone. |
StickR | 32 | Click of the Right Stick. |
StickRDown | 8388608 | Pseudo-button: Right Stick tilted Down past the deadzone. |
StickRLeft | 1048576 | Pseudo-button: Right Stick tilted Left past the deadzone. |
StickRRight | 4194304 | Pseudo-button: Right Stick tilted Right past the deadzone. |
StickRUp | 2097152 | Pseudo-button: Right Stick tilted Up past the deadzone. |
Up | 8192 | D-Pad Up. |
Verification | 536870912 | Internal "verification" button used during HID input testing. |
X | 4 | X button (up face button). |
Y | 8 | Y button (left face button). |
ZL | 256 | ZL trigger. |
ZR | 512 | ZR trigger. |