Difference between revisions of "00E1"
Jump to navigation
Jump to search
(more for iii) |
m |
||
Line 26: | Line 26: | ||
| 1{{Ref|1|[*]}} | | 1{{Ref|1|[*]}} | ||
| LEFTSTICKY | | LEFTSTICKY | ||
− | | {{Icon|VC}} {{Icon|SA}} | + | | {{Icon|VC}} {{Icon|SA}} Forward / Backwards |
− | | {{Icon|VC}} {{Icon|SA}} Steer | + | | {{Icon|VC}} {{Icon|SA}} Steer Forward / Backward |
|- | |- | ||
| 2{{Ref|1|[*]}} | | 2{{Ref|1|[*]}} | ||
Line 66: | Line 66: | ||
| 9 | | 9 | ||
| DPADDOWN | | DPADDOWN | ||
− | | {{Icon|3}} {{Icon|VC}} Backward<br />{{Icon|SA}} Group Ctrl | + | | {{Icon|3}} {{Icon|VC}} Backward<br />{{Icon|SA}} Group Ctrl Forward |
| {{Icon|SA}} Previous Radio Station | | {{Icon|SA}} Previous Radio Station | ||
|- | |- |
Revision as of 17:27, 18 September 2016
- 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 (see below)
- Native analog
- IS_BUTTON_PRESSED
This conditional opcode returns true if a 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.
Index | Enum | On foot | In a vehicle |
---|---|---|---|
0[*] | LEFTSTICKX | ![]() ![]() |
![]() ![]() |
1[*] | LEFTSTICKY | ![]() ![]() |
![]() ![]() |
2[*] | RIGHTSTICKX | ![]() ![]() ![]() |
![]() ![]() ![]() |
3[*] | RIGHTSTICKY | ![]() ![]() ![]() |
![]() ![]() ![]() |
4 | LEFTSHOULDER1 | ![]() ![]() |
![]() ![]() ![]() |
5 | LEFTSHOULDER2 | ![]() ![]() ![]() |
![]() ![]() ![]() |
6 | RIGHTSHOULDER1 | ![]() ![]() ![]() |
![]() ![]() ![]() |
7 | RIGHTSHOULDER2 | ![]() ![]() ![]() |
![]() ![]() ![]() |
8 | DPADUP | ![]() ![]() ![]() |
![]() |
9 | DPADDOWN | ![]() ![]() ![]() |
![]() |
10 | DPADLEFT | ![]() ![]() ![]() |
![]() ![]() ![]() |
11 | DPADRIGHT | ![]() ![]() ![]() |
![]() ![]() ![]() |
12 | START | ||
13 | SELECT | ![]() ![]() ![]() | |
14 | SQUARE | ![]() ![]() ![]() |
![]() ![]() ![]() |
15 | TRIANGLE | ![]() ![]() ![]() | |
16 | CROSS | ![]() ![]() ![]() |
![]() ![]() ![]() |
17 | CIRCLE | ![]() ![]() ![]() | |
18 | LEFTSHOCK | ![]() ![]() |
![]() ![]() ![]() |
19 | RIGHTSHOCK | ![]() ![]() ![]() |
![]() ![]() ![]() |
^ Use opcode 0494 to get specific key presses
Keywords
keypress, key, press, pressed, button