mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-03 06:32:10 +00:00
dcd2c26214
We basically never want two pads active at once, but keyboard is different. So, they need to be treated differently. Fixes #1212.
19 lines
354 B
C++
19 lines
354 B
C++
#pragma once
|
|
#include "InputDevice.h"
|
|
#include "Xinput.h"
|
|
|
|
class XinputDevice :
|
|
public InputDevice
|
|
{
|
|
public:
|
|
XinputDevice();
|
|
virtual int UpdateState(InputState &input_state);
|
|
virtual bool IsPad() { return true; }
|
|
private:
|
|
void ApplyDiff(XINPUT_STATE &state, InputState &input_state);
|
|
int gamepad_idx;
|
|
int check_delay;
|
|
XINPUT_STATE prevState;
|
|
};
|
|
|