2021-01-02 01:49:45 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class XInput : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
XInput();
|
|
|
|
|
|
|
|
private:
|
2021-01-02 02:17:37 -05:00
|
|
|
static XINPUT_STATE xiStates[XUSER_MAX_COUNT];
|
2021-01-02 14:42:52 -05:00
|
|
|
static int xiPlayerNum;
|
2021-01-03 03:33:12 -05:00
|
|
|
static XINPUT_STATE lastxiState;
|
2021-01-02 02:17:37 -05:00
|
|
|
|
|
|
|
static void CL_FrameStub();
|
|
|
|
static void PollXInputDevices();
|
|
|
|
|
|
|
|
static void CL_CreateCmdStub();
|
|
|
|
static void CL_GamepadMove(int, Game::usercmd_s*);
|
2021-01-02 17:48:48 -05:00
|
|
|
|
|
|
|
static void MSG_WriteDeltaUsercmdKeyStub();
|
|
|
|
|
2021-01-02 20:06:40 -05:00
|
|
|
static void ApplyMovement(Game::msg_t* msg, int key, Game::usercmd_s* from, Game::usercmd_s* to);
|
|
|
|
|
2021-01-02 17:48:48 -05:00
|
|
|
static void MSG_ReadDeltaUsercmdKeyStub();
|
2021-01-02 18:37:46 -05:00
|
|
|
static void MSG_ReadDeltaUsercmdKeyStub2();
|
|
|
|
};
|
2021-01-02 01:49:45 -05:00
|
|
|
}
|