00E1
Revision as of 06:51, 6 December 2016 by Spaceeinstein (talk | contribs)
- Description
- Checks if the button is pressed
- Syntax
- 00E1: key_pressed [int1] [int2]
- Parameter
- Native analog
- IS_BUTTON_PRESSED
This conditional opcode returns true if the button assigned to a function in the game is being pressed. The GXT file can display on screen specific buttons assigned to the action. If CLEO is installed, use opcode 0AB0 (or 05EE for older versions of CLEO for GTA III and Vice City) to get a specific key on a keyboard.
Joypads
Pad | Enum | Description |
---|---|---|
0 | PAD1 | Player 1 |
1 | PAD2 | Player 2 |
Joypad buttons
Button | Enum | On foot | In a vehicle |
---|---|---|---|
0[*] | LEFTSTICKX | Left / Right | Steer Left / Right |
1[*] | LEFTSTICKY | Forward / Backwards | Steer Forward / Backward |
2[*] | RIGHTSTICKX | Special Ctrl Left / Right | Turret Left / Right |
3[*] | RIGHTSTICKY | Special Ctrl Up / Down | Turret Up / Down, Lean Up / Down |
4 | LEFTSHOULDER1 | Action | Radio Secondary Fire |
5 | LEFTSHOULDER2 | Previous Weapon | Look Left |
6 | RIGHTSHOULDER1 | Aim | Handbrake |
7 | RIGHTSHOULDER2 | Next Weapon | Look Right |
8 | DPADUP | Forward Group Ctrl Back |
Next Radio Station |
9 | DPADDOWN | Backward Group Ctrl Forward |
Previous Radio Station |
10 | DPADLEFT | Strafe Left Conversation - No |
Steer Left No |
11 | DPADRIGHT | Strafe Right Conversation - Yes |
Steer Right Yes, Trip Skip |
12 | START | ||
13 | SELECT | Change Camera | |
14 | SQUARE | Jump / Zoom In | Brake / Reverse |
15 | TRIANGLE | Enter / Exit | |
16 | CROSS | Sprint / Zoom Out | Accelerate |
17 | CIRCLE | Attack | |
18 | LEFTSHOCK | Crouch | Horn |
19 | RIGHTSHOCK | Look Behind | Sub-mission |
^ Use opcode 0494 to get specific key presses
Keywords
keypress, key, press, pressed, button