mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 15:30:35 +00:00
22 lines
429 B
C++
22 lines
429 B
C++
#pragma once
|
|
#include "InputDevice.h"
|
|
#include "Xinput.h"
|
|
|
|
struct RawInputState;
|
|
|
|
class XinputDevice :
|
|
public InputDevice
|
|
{
|
|
public:
|
|
XinputDevice();
|
|
virtual int UpdateState(InputState &input_state);
|
|
virtual bool IsPad() { return true; }
|
|
int UpdateRawStateSingle(RawInputState &rawState);
|
|
private:
|
|
void ApplyDiff(XINPUT_STATE &state, InputState &input_state);
|
|
int gamepad_idx;
|
|
int check_delay;
|
|
XINPUT_STATE prevState;
|
|
};
|
|
|