0494

From GTAMods Wiki
Revision as of 09:17, 17 August 2009 by Spaceeinstein (talk | contribs)
Jump to navigation Jump to search

{{{games}}}


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

Parameter 1 returns -128 when pressing the left button and 128 when pressing the right button.
Parameter 2 returns -128 when pressing the up button and 128 when pressing the down button.
Parameter 3 returns -128 when pressing the special control left button and 128 when pressing the special control right button.
Parameter 4 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