mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-24 05:49:58 +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
318 B
C++
19 lines
318 B
C++
#pragma once
|
|
|
|
#include <list>
|
|
#include <memory>
|
|
|
|
#include "../Common/CommonTypes.h"
|
|
|
|
struct InputState;
|
|
|
|
class InputDevice
|
|
{
|
|
public:
|
|
enum { UPDATESTATE_SKIP_PAD = 0x1234};
|
|
virtual int UpdateState(InputState &input_state) = 0;
|
|
virtual bool IsPad() = 0;
|
|
};
|
|
|
|
std::list<std::shared_ptr<InputDevice>> getInputDevices();
|