IsButtonPressed

From the Fallout3 GECK Wiki
Revision as of 20:04, 18 December 2016 by imported>Gribbleshnibit8 (changed button codes to template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Lutana NVSE plugin.

Description

Returns whether or not the button is currently pressed.

Syntax

[help]
(bool) IsButtonPressed BitMask:int

Example

if (IsButtonPressed 4)

; Dpad Left pressed, do soemthing

endif

XBox Controller Button Codes

1     : DPAD_UP
2     : DPAD_DOWN
4     : DPAD_LEFT
8     : DPAD_RIGHT
16    : START
32    : BACK
64    : LEFT_THUMBSTICK
128   : RIGHT_THUMBSTICK
256   : LEFT_SHOULDER (LB)
512   : RIGHT_SHOULDER (RB)
1024  : XBOX_GUIDE
4096  : BUTTON_A
8192  : BUTTON_B
16384 : BUTTON_X
32768 : BUTTON_Y


See Also