Difference between revisions of "0494"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
| game = [[GTA 3]], [[Vice City]], [[San Andreas]] | | game = [[GTA 3]], [[Vice City]], [[San Andreas]] | ||
}} | }} | ||
− | |||
Parameter 1 0 = Mouse and Keys 1 = joypad | Parameter 1 0 = Mouse and Keys 1 = joypad | ||
Parameter 2 returns -128 when pressing the left button and 128 when pressing the right button.<br> | Parameter 2 returns -128 when pressing the left button and 128 when pressing the right button.<br> |
Revision as of 18:59, 17 October 2010
{{{games}}}
- Description
- Gets the joystick data
- Syntax
- {{{syntax1}}}
- Parameter
Parameter 1 0 = Mouse and Keys 1 = joypad
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