Difference between revisions of "00E1"
Jump to navigation
Jump to search
(updating page + button names) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | __NOTOC__ |
− | + | {{OpCode | |
− | + | | games = {{Icon|t}} | |
− | + | | command = IS_BUTTON_PRESSED | |
− | + | | description = Checks if the button is pressed | |
− | + | | syntax1 = 00E1: key_pressed [''int1''] [''int2''] | |
− | + | | p1t = [''int1''] | |
− | + | | p1d = Joypad (normally 0, [[#Joypads|see below]]) | |
− | + | | p2t = [''int2''] | |
− | + | | p2d = Joypad button ([[#Joypad buttons|see below]]) | |
− | + | | native = [[IS_BUTTON_PRESSED]] | |
− | + | }} | |
− | |||
− | |||
− | This opcode returns true if | + | This conditional opcode returns true if the button assigned to a function in the game is being pressed. The [[GXT#Buttons|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 == |
− | + | {|class="wikitable center-col-1" | |
− | + | !Pad ||[[SCM language III/VC definitions#PAD|Enum]] ||Description | |
− | |||
− | ! | ||
|- | |- | ||
− | | 0 | + | |0 ||PAD1 ||Player 1 |
− | | | ||
− | | | ||
− | |||
|- | |- | ||
− | | 1{{Ref|1|[*]}} | + | |1 ||PAD2 ||Player 2 |
− | | | + | |} |
− | | | + | |
− | | Steer | + | == Joypad buttons == |
+ | {| class="wikitable center-col-1" | ||
+ | !Button | ||
+ | ![[SCM language III/VC definitions#BUTTON|Enum]] | ||
+ | !style="width: 20em;" |On foot | ||
+ | !style="width: 20em;" |In a vehicle | ||
+ | |- | ||
+ | |0{{Ref|1|[*]}} | ||
+ | |LEFTSTICKX | ||
+ | |{{Icon|VC}} {{Icon|SA}} Left / Right | ||
+ | |{{Icon|VC}} {{Icon|SA}} Steer Left / Right | ||
|- | |- | ||
− | | 2{{Ref|1|[*]}} | + | |1{{Ref|1|[*]}} |
− | | | + | |LEFTSTICKY |
− | | Special Ctrl Left / Right | + | |{{Icon|VC}} {{Icon|SA}} Forward / Backwards |
+ | |{{Icon|VC}} {{Icon|SA}} Steer Forward / Backward | ||
+ | |- | ||
+ | |2{{Ref|1|[*]}} | ||
+ | |RIGHTSTICKX | ||
+ | |{{Icon|t}} Special Ctrl Left / Right | ||
+ | |{{Icon|t}} Turret Left / Right | ||
|- | |- | ||
− | | 3{{Ref|1|[*]}} | + | |3{{Ref|1|[*]}} |
− | | | + | |RIGHTSTICKY |
− | | Special Ctrl Up / Down | + | |{{Icon|t}} Special Ctrl Up / Down |
+ | |{{Icon|t}} Turret Up / Down, Lean Up / Down | ||
|- | |- | ||
− | | 4 | + | |4 |
− | | LEFTSHOULDER1 | + | |LEFTSHOULDER1 |
− | | | + | |{{Icon|VC}} {{Icon|SA}} Action |
− | | Radio | + | |{{Icon|3}} {{Icon|VC}} Radio<br />{{Icon|SA}} Secondary Fire |
|- | |- | ||
− | | 5 | + | |5 |
− | | LEFTSHOULDER2 | + | |LEFTSHOULDER2 |
− | | Previous Weapon | + | |{{Icon|t}} Previous Weapon |
− | | Look Left | + | |{{Icon|t}} Look Left |
|- | |- | ||
− | | 6 | + | |6 |
− | | RIGHTSHOULDER1 | + | |RIGHTSHOULDER1 |
− | | Aim | + | |{{Icon|t}} Aim |
− | | Handbrake | + | |{{Icon|t}} Handbrake |
|- | |- | ||
− | | 7 | + | |7 |
− | | RIGHTSHOULDER2 | + | |RIGHTSHOULDER2 |
− | | Next Weapon | + | |{{Icon|t}} Next Weapon |
− | | Look Right | + | |{{Icon|t}} Look Right |
|- | |- | ||
− | | 8 | + | |8 |
− | | DPADUP | + | |DPADUP |
− | | Forward | + | |{{Icon|3}} {{Icon|VC}} Forward<br />{{Icon|SA}} Group Ctrl Back |
− | | Next Radio Station | + | |{{Icon|SA}} Next Radio Station |
|- | |- | ||
− | | 9 | + | |9 |
− | | DPADDOWN | + | |DPADDOWN |
− | | Backward | + | |{{Icon|3}} {{Icon|VC}} Backward<br />{{Icon|SA}} Group Ctrl Forward |
− | | Previous Radio Station | + | |{{Icon|SA}} Previous Radio Station |
|- | |- | ||
− | | 10 | + | |10 |
− | | DPADLEFT | + | |DPADLEFT |
− | | Strafe Left | + | |{{Icon|3}} {{Icon|VC}} Strafe Left<br />{{Icon|SA}} Conversation - No |
− | | Steer Left | + | |{{Icon|3}} {{Icon|VC}} Steer Left<br />{{Icon|SA}} No |
|- | |- | ||
− | | 11 | + | |11 |
− | | DPADRIGHT | + | |DPADRIGHT |
− | | Strafe Right | + | |{{Icon|3}} {{Icon|VC}} Strafe Right<br />{{Icon|SA}} Conversation - Yes |
− | | Steer Right | + | |{{Icon|3}} {{Icon|VC}} Steer Right<br />{{Icon|SA}} Yes, Trip Skip |
|- | |- | ||
− | | 12 | + | |12 |
− | | START | + | |START |
− | | | + | | |
− | | | + | | |
|- | |- | ||
− | | 13 | + | |13 |
− | | SELECT | + | |SELECT |
− | | colspan="2" | + | |colspan="2" {{a|c}} |{{Icon|t}} Change Camera |
|- | |- | ||
− | | 14 | + | |14 |
− | | SQUARE | + | |SQUARE |
− | | Jump | + | |{{Icon|t}} Jump / Zoom In |
− | | Brake / Reverse | + | |{{Icon|t}} Brake / Reverse |
|- | |- | ||
− | | 15 | + | |15 |
− | | TRIANGLE | + | |TRIANGLE |
− | | colspan="2" | + | |colspan="2" {{a|c}} |{{Icon|t}} Enter / Exit |
|- | |- | ||
− | | 16 | + | |16 |
− | | CROSS | + | |CROSS |
− | | Sprint | + | |{{Icon|t}} Sprint / Zoom Out |
− | | Accelerate | + | |{{Icon|t}} Accelerate |
|- | |- | ||
− | | 17 | + | |17 |
− | | CIRCLE | + | |CIRCLE |
− | | colspan="2" | + | |colspan="2" {{a|c}} |{{Icon|t}} Attack |
|- | |- | ||
− | | 18 | + | |18 |
− | | LEFTSHOCK | + | |LEFTSHOCK |
− | | | + | |{{Icon|VC}} {{Icon|SA}} Crouch |
− | | Horn | + | |{{Icon|t}} Horn |
|- | |- | ||
− | | 19 | + | |19 |
− | | RIGHTSHOCK | + | |RIGHTSHOCK |
− | | Look Behind | + | |{{Icon|t}} Look Behind |
− | | Sub-mission | + | |{{Icon|t}} Sub-mission |
|} | |} | ||
{{Note|1}} Use opcode [[0494]] to get specific key presses | {{Note|1}} Use opcode [[0494]] to get specific key presses | ||
− | ==Keywords== | + | == Keywords == |
− | keypress, key, press, button | + | keypress, key, press, pressed, button |
− | [[ | + | == See also == |
+ | * {{Icon|3}} {{Icon|SA}} [[00E2]], gets the pad state | ||
+ | * {{Icon|t}} [[0494]], gets the position of the analogue sticks |
Latest revision as of 06:51, 6 December 2016
- 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