00E1

From GTAModding
Jump to: navigation, search

GTA III Vice City San Andreas IS_BUTTON_PRESSED


Description

Checks if a button is pressed

Syntax

00E1:   key_pressed [int1] [int2]

Parameter

[int1]
Pad, normally 0 for pad 1 (player 1), 1 for pad 2 (player 2)
[int2]
Button index

Native analog

IS_BUTTON_PRESSED

This opcode returns true if a button assigned to a function in the game is being pressed. The GXT file can help display the specific key assigned to the function. Opcode 00E2 can get the state of the button. If CLEO is installed, use opcode 0AB0 for San Andreas or 05EE for GTA III and Vice City to get a specific key on a keyboard.

Index Button On foot In a vehicle
0[*] LEFTSTICKX GTA III Vice City San Andreas Left / Right GTA III Vice City San Andreas Steer Left / Right
1[*] LEFTSTICKY GTA III Vice City San Andreas Foward / Backwards GTA III Vice City San Andreas Steer Foward / Backward
2[*] RIGHTSTICKX GTA III Vice City San Andreas Special Ctrl Left / Right GTA III Vice City San Andreas Turret Left / Right
3[*] RIGHTSTICKY GTA III Vice City San Andreas Special Ctrl Up / Down GTA III Vice City San Andreas Turret Up / Down, Lean Up / Down
4 LEFTSHOULDER1 Vice City San Andreas Action Vice City Radio
San Andreas Secondary Fire
5 LEFTSHOULDER2 GTA III Vice City San Andreas Previous Weapon GTA III Vice City San Andreas Look Left
6 RIGHTSHOULDER1 GTA III Vice City San Andreas Aim GTA III Vice City San Andreas Handbrake
7 RIGHTSHOULDER2 GTA III Vice City San Andreas Next Weapon GTA III Vice City San Andreas Look Right
8 DPADUP Vice City Forward
San Andreas Group Ctrl Back
San Andreas Next Radio Station
9 DPADDOWN Vice City Backward
San Andreas Group Ctrl Foward
San Andreas Previous Radio Station
10 DPADLEFT Vice City Strafe Left
San Andreas Conversation - No
Vice City Steer Left
San Andreas No
11 DPADRIGHT Vice City Strafe Right
San Andreas Conversation - Yes
Vice City Steer Right
San Andreas Yes, Trip Skip
12 START
13 SELECT GTA III Vice City San Andreas Change Camera
14 SQUARE GTA III Vice City San Andreas Jump / Zoom In GTA III Vice City San Andreas Brake / Reverse
15 TRIANGLE GTA III Vice City San Andreas Enter / Exit
16 CROSS GTA III Vice City San Andreas Sprint / Zoom Out GTA III Vice City San Andreas Accelerate
17 CIRCLE GTA III Vice City San Andreas Attack
18 LEFTSHOCK Vice City San Andreas Crouch GTA III Vice City San Andreas Horn
19 RIGHTSHOCK GTA III Vice City San Andreas Look Behind GTA III Vice City San Andreas Sub-mission

^ Use opcode 0494 to get specific key presses

Keywords

keypress, key, press, button