Difference between revisions of "IsButtonPressed"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Gribbleshnibit8
(Created page with "{{Function |origin = LU |summary = Returns whether or not the button is currently pressed. |name = IsButtonPressed |returnType = bool |arguments = {{FunctionArgument...")
 
imported>Gribbleshnibit8
Line 33: Line 33:


==See Also==
==See Also==
*[[EnableButtons]]
*[[EnableButton]]
*[[DisableButton]]
*[[DisableButton]]
*[[GetPressedButtons]]
*[[GetPressedButtons]]
[[Category:Functions_(Lutana)]]
[[Category:Functions_(Lutana)]]
[[Category:Controller Functions (Lutana)]]
[[Category:Controller Functions (Lutana)]]

Revision as of 23:24, 24 April 2015

< [[::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

Controller Button Codes

00001 : DPAD_UP
00002 : DPAD_DOWN
00004 : DPAD_LEFT
00008 : DPAD_RIGHT
00016 : START
00032 : BACK
00064 : LEFT_THUMBSTICK
00128 : RIGHT_THUMBSTICK
00256 : LEFT_SHOULDER (LB)
00512 : RIGHT_SHOULDER (RB)
01024 : XBOX_GUIDE
04096 : BUTTON_A
08192 : BUTTON_B
16384 : BUTTON_X
32768 : BUTTON_Y

Example

if (IsButtonPressed 4)

; Dpad Left pressed, do soemthing

endif

See Also