1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-10-31 23:15:54 +00:00
re3/src/ControllerConfig.h

57 lines
1.3 KiB
C
Raw Normal View History

2019-05-31 17:02:26 +00:00
#pragma once
// based on x-gtasa
enum eControllerType
{
KEYBOARD,
OPTIONAL_EXTRA,
MOUSE,
JOYSTICK,
};
class CMouseControllerState;
2019-05-31 17:02:26 +00:00
class CControllerConfigManager
{
public:
struct tControllerConfigBind
{
RsKeyCodes m_Key;
Int32 m_ContSetOrder;
};
Bool field_0;
char _pad0[3];
DIJOYSTATE2 m_OldState;
DIJOYSTATE2 m_NewState;
WChar m_aActionNames[41][40];
Bool m_aButtonStates[17];
char _pad1[3];
tControllerConfigBind m_aSettings[41][4];
UInt8 m_aSimCheckers[4][4];
Bool m_bMouseAssociated;
char _pad2[3];
void UpdateJoyButtonState(int padnumber);
void UpdateJoyInConfigMenus_ButtonDown(int button, int padnumber);
void AffectControllerStateOn_ButtonDown(int button, eControllerType type);
void UpdateJoyInConfigMenus_ButtonUp(int button, int padnumber);
void AffectControllerStateOn_ButtonUp(int button, int padnumber);
Int32 GetJoyButtonJustDown();
void LoadSettings(Int32 file);
void MakeControllerActionsBlank();
void InitDefaultControlConfiguration();
void InitDefaultControlConfigMouse(CMouseControllerState const &mousestate);
2019-06-05 19:18:06 +00:00
void InitDefaultControlConfigJoyPad(unsigned int buttons);
2019-06-13 00:35:26 +00:00
void ClearSimButtonPressCheckers();
void AffectPadFromKeyBoard();
void AffectPadFromMouse();
2019-05-31 17:02:26 +00:00
};
VALIDATE_SIZE(CControllerConfigManager, 0x143C);
extern CControllerConfigManager &ControlsManager;