Editing IsButtonPressed

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
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 = if (IsButtonPressed 4)
  |example = if (IsButtonPressed 4)
; Dpad Left pressed, do soemthing
; Dpad Left pressed, do soemthing
  endif
  endif
}}
}}
{{Controller_Button_Codes}}
 
==See Also==
==See Also==
*[[EnableButton]]
*[[EnableButton]]

Please note that all contributions to the Fallout3 GECK Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see GECK:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)