Skip to content

Commit a6e4dea

Browse files
Merge pull request #316 from abumsd7/e_ControllerAction
Updated ControllerAction enum
2 parents 5da18b6 + f036510 commit a6e4dea

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

plugin_vc/game_vc/CControllerConfigManager.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ enum e_ControllerAction {
2525
PED_JUMPING,
2626
PED_SPRINT,
2727
PED_LOOKBEHIND,
28+
PED_DUCK,
29+
PED_ANSWER_PHONE,
2830
VEHICLE_ACCELERATE,
2931
VEHICLE_BRAKE,
3032
VEHICLE_CHANGE_RADIO_STATION,
@@ -52,6 +54,7 @@ enum e_ControllerAction {
5254
SWITCH_DEBUG_CAM_ON,
5355
TAKE_SCREEN_SHOT,
5456
SHOW_MOUSE_POINTER_TOGGLE,
57+
UNKNOWN_ACTION,
5558
NUM_CONTROLLER_ACTIONS,
5659
};
5760

@@ -93,10 +96,10 @@ VALIDATE_OFFSET(CControllerConfigManager, m_bFirstCapture, 0x0);
9396
VALIDATE_OFFSET(CControllerConfigManager, m_OldState, 0x4);
9497
VALIDATE_OFFSET(CControllerConfigManager, m_NewState, 0x114);
9598
VALIDATE_OFFSET(CControllerConfigManager, m_aActionNames, 0x224);
96-
VALIDATE_OFFSET(CControllerConfigManager, m_aButtonStates, 0xEF4);
97-
VALIDATE_OFFSET(CControllerConfigManager, m_actions, 0xF08);
98-
VALIDATE_OFFSET(CControllerConfigManager, m_aSimCheckers, 0x1428);
99-
VALIDATE_OFFSET(CControllerConfigManager, m_bMouseAssociated, 0x1438);
100-
VALIDATE_SIZE(CControllerConfigManager, 0x143C);
99+
VALIDATE_OFFSET(CControllerConfigManager, m_aButtonStates, 0xFE4); // Real Game: 0xFE4 (instead of 0xEF4)
100+
VALIDATE_OFFSET(CControllerConfigManager, m_actions, 0xFF8); // Real Game: 0xFF8 (instead of 0xF08)
101+
VALIDATE_OFFSET(CControllerConfigManager, m_aSimCheckers, 0x1578); // Real Game: 0x1578 (instead of 0x1428)
102+
VALIDATE_OFFSET(CControllerConfigManager, m_bMouseAssociated, 0x1588); // Real Game: 0x1588 (instead of 0x1438)
103+
VALIDATE_SIZE(CControllerConfigManager, 0x158C); // Real Game: 0x158C (instead of 0x143C)
101104

102105
extern CControllerConfigManager& ControlsManager;

0 commit comments

Comments
 (0)