Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 00E2

Opcode Database

00E2

DescriptionThis 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)
Gamessa iii
CategoryCommon, Game, Player
San Andreas
sascm.ini00E2=3,get_pad_state %1d% button %2d% store_to %3d%
Example00E2: get_pad_state 0 button 15 store_to 4@
Command NameGET_PAD_STATE
Vice City
sascm.ini00E2=3,get_pad_state %1d% button %2d% store_to %3d%
Example00E2: get_pad_state 0 button 15 store_to 4@
Command NameGET_PAD_STATE
GTA III
gtascm.ini00E2=3,get_pad_state %1d% button %2d% store_to %3d%
Example00E2: get_pad_state 0 button 15 store_to 4@
Command NameGET_PAD_STATE

<< 00E1

00E3 >>