GTAG - Modding - Opcode Database - 0494
Opcode Database
0494
| Description | Returns the offset of the specified Left/Right, Up/Down, Look Left/Look Right and Look Up/Look Down keys. Joystick ID is eqivalent to the player id, which can be 0 for player 1 and 1 for player 2 (as well as the relevant global varible). Returned Values 1. Movement. Left: 128 - Right: -128 2. Movement. Up: 128 - Down: -128 3. Special Ctrl. Left: -128 - Right: 128 4. Special Ctrl. Up: -128 - Down: 128 |
|---|---|
| Parameters (v2) | 1) Player handle (Integer) (INT) 2) (Returned) Integer (INT) 3) (Returned) Integer (INT) 4) (Returned) Integer (INT) 5) (Returned) Integer (INT) |
| Games | |
| Category | Common, Player |
| Command Name (IV) | GET_POSITION_OF_ANALOGUE_STICKS |
| San Andreas | |
| sascm.ini | 0494=5,get_position_of_analogue_sticks %1h% store_to %2d% %3d% %4d% %5d% |
| Example | 0494: get_position_of_analogue_sticks 0 store_to $MOVE_AXIS_X $MOVE_AXIS_Y $SPECIAL_AXIS_X $SPECIAL_AXIS_Y |
| Command Name | GET_POSITION_OF_ANALOGUE_STICKS |
| Vice City | |
| sascm.ini | 0494=5,get_joystick %1h% data_to %2d% %3d% %4d% %5d% |
| Example | 0494: get_joystick 0 data_to $880 $881 $882 $883 |
| Command Name | GET_POSITION_OF_ANALOGUE_STICKS |
| GTA III | |
| gtascm.ini | 0494=5,get_joystick %1h% direction_offset_to %2d% %3d% %4d% %5d% |
| Example | 0494: get_joystick 0 data_to $MOVE_AXIS_X $MOVE_AXIS_Y $SPECIAL_AXIS_X $SPECIAL_AXIS_Y |
| Command Name | GET_POSITION_OF_ANALOGUE_STICKS |

