ppsspp/Windows/XinputDevice.h
Henrik Rydgard fafa9c9bfd Dynamically load XInput, lets us to map the home button with a trick
Also avoids failing to start if XInput 1.3 is not installed.
2013-07-23 00:12:26 +02:00

19 lines
392 B
C++

#pragma once
#include "InputDevice.h"
#include "Xinput.h"
class XinputDevice : public InputDevice {
public:
XinputDevice();
~XinputDevice();
virtual int UpdateState(InputState &input_state);
virtual bool IsPad() { return true; }
private:
void ApplyButtons(XINPUT_STATE &state, InputState &input_state);
int gamepad_idx;
int check_delay;
XINPUT_STATE prevState;
u32 prevButtons;
};