Difference between revisions of "0494"

From GTAMods Wiki
Jump to navigation Jump to search
Line 10: Line 10:
 
}}
 
}}
  
Parameter 1 0 = player 1 and 1 = player 2.<br>
+
'''Parameter 1'''
Parameter 2 returns -128 when pressing the left button and 128 when pressing the right button.<br>
+
0 = player 1
Parameter 3 returns -128 when pressing the up button and 128 when pressing the down button.<br>
+
1 = player 2
Parameter 4 returns -128 when pressing the special control left button and 128 when pressing the special control right button.<br>
+
'''Parameter 2''' returns -128 when pressing the left button and 128 when pressing the right button.<br>
Parameter 5 returns -128 when pressing the special control up button and 128 when pressing the special control down button.<br>
+
'''Parameter 3''' returns -128 when pressing the up button and 128 when pressing the down button.<br>
 +
'''Parameter 4''' returns -128 when pressing the special control left button and 128 when pressing the special control right button.<br>
 +
'''Parameter 5''' returns -128 when pressing the special control up button and 128 when pressing the special control down button.<br>
  
 
This opcode is a useful alternate way of detecting certain [[00E1|key presses]].
 
This opcode is a useful alternate way of detecting certain [[00E1|key presses]].

Revision as of 12:27, 23 October 2010

{{{games}}}


Description
Gets the joystick data
Syntax
{{{syntax1}}}
Parameter

Parameter 1

0 = player 1  
1 = player 2

Parameter 2 returns -128 when pressing the left button and 128 when pressing the right button.
Parameter 3 returns -128 when pressing the up button and 128 when pressing the down button.
Parameter 4 returns -128 when pressing the special control left button and 128 when pressing the special control right button.
Parameter 5 returns -128 when pressing the special control up button and 128 when pressing the special control down button.

This opcode is a useful alternate way of detecting certain key presses.

Keywords

get, joystick