Difference between revisions of "EnableButton"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Gribbleshnibit8
(Created page with "{{Function |origin = LU |summary = Re-enables button input disabled via DisableButton. Multiple buttons can be specified at once. |name = EnableButton |returnType = none...")
 
imported>Gribbleshnibit8
(changed button codes to template)
 
Line 9: Line 9:
   |Type = int
   |Type = int
   }}
   }}
==Controller Button Codes==
<pre>
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
</pre>
  |example = EnableButton 15 ; enable the d-pad
  |example = EnableButton 15 ; enable the d-pad
  EnableButton 63487 ; enable all buttons
  EnableButton 63487 ; enable all buttons
}}
}}
 
{{Controller_Button_Codes}}
==See Also==
==See Also==
*[[DisableButton]]
*[[DisableButton]]
*[[IsButtonPressed]]
*[[IsButtonPressed]]
*[[IsButtonDisabled]]
*[[GetPressedButtons]]
*[[GetPressedButtons]]
[[Category:Functions_(Lutana)]]
[[Category:Functions_(Lutana)]]
[[Category:Controller Functions (Lutana)]]
[[Category:Controller Functions (Lutana)]]

Latest revision as of 20:00, 18 December 2016

< [[::Category:Functions|Category:Functions]]

A function added by the Lutana NVSE plugin.

Description

Re-enables button input disabled via DisableButton. Multiple buttons can be specified at once.

Syntax

[help]
(none) EnableButton Button:int

Example

EnableButton 15		; enable the d-pad
EnableButton 63487	; enable all buttons

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