Difference between revisions of "00E1"
Jump to navigation
Jump to search
(all values named, using icons instead) |
(how long has this been wrong?!) |
||
Line 46: | Line 46: | ||
| 5 | | 5 | ||
| LEFTSHOULDER2 | | LEFTSHOULDER2 | ||
− | | {{Icon|t}} Previous Weapon | + | | {{Icon|t}} Previous Weapon |
| {{Icon|t}} Look Left | | {{Icon|t}} Look Left | ||
|- | |- | ||
Line 56: | Line 56: | ||
| 7 | | 7 | ||
| RIGHTSHOULDER2 | | RIGHTSHOULDER2 | ||
− | | {{Icon|t}} Next Weapon | + | | {{Icon|t}} Next Weapon |
| {{Icon|t}} Look Right | | {{Icon|t}} Look Right | ||
|- | |- | ||
Line 90: | Line 90: | ||
| 14 | | 14 | ||
| SQUARE | | SQUARE | ||
− | | {{Icon|t}} Jump | + | | {{Icon|t}} Jump / Zoom In |
| {{Icon|t}} Brake / Reverse | | {{Icon|t}} Brake / Reverse | ||
|- | |- | ||
Line 99: | Line 99: | ||
| 16 | | 16 | ||
| CROSS | | CROSS | ||
− | | {{Icon|t}} Sprint | + | | {{Icon|t}} Sprint / Zoom Out |
| {{Icon|t}} Accelerate | | {{Icon|t}} Accelerate | ||
|- | |- |
Revision as of 04:48, 8 January 2015
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
This opcode returns true if a button assigned to a function in the game is being pressed. The GXT file can help display the keys being pressed. 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 | Left / Right | Steer Left / Right |
1[*] | LEFTSTICKY | Foward / Backwards | Steer Foward / Backward |
2[*] | RIGHTSTICKX | Special Ctrl Left / Right | |
3[*] | RIGHTSTICKY | Special Ctrl 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 Foward |
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, button