GTAG - Modding - Opcode Database - 00E2
Opcode Database
00E2
| Description | This stores the status of the specified key into a variable. 0 = unpressed 255 = pressed This opcode can differentiate the difference between the right, left, up and down keys on keyboards. 128 = up* -128 = down* 128 = right* -128 = left* Lower values would indicate a joypad situation where the joystick is being pushed slightly. This opcode is missing on Vice City. |
|---|---|
| Parameters (v2) | 1) Pad ID (INT) 2) Pad Button ID (Integer) (INT) 3) (Returned) Integer (INT) |
| Games | |
| Category | Common, Game, Player |
| San Andreas | |
| sascm.ini | 00E2=3,get_pad_state %1d% button %2d% store_to %3d% |
| Example | 00E2: get_pad_state 0 button 15 store_to 4@ |
| Command Name | GET_PAD_STATE |
| Vice City | |
| sascm.ini | 00E2=3,get_pad_state %1d% button %2d% store_to %3d% |
| Example | 00E2: get_pad_state 0 button 15 store_to 4@ |
| Command Name | GET_PAD_STATE |
| GTA III | |
| gtascm.ini | 00E2=3,get_pad_state %1d% button %2d% store_to %3d% |
| Example | 00E2: get_pad_state 0 button 15 store_to 4@ |
| Command Name | GET_PAD_STATE |

