InputCommon: Detect when evdev exposes acceleration/gyroscope data.

This commit is contained in:
Jordan Woyak
2019-11-08 18:23:22 -06:00
parent d8c62b5965
commit 1180c231a6
5 changed files with 155 additions and 76 deletions

View File

@ -19,34 +19,6 @@ void Shutdown();
class evdevDevice : public Core::Device
{
private:
class Button : public Core::Device::Input
{
public:
std::string GetName() const override;
Button(u8 index, u16 code, libevdev* dev) : m_index(index), m_code(code), m_dev(dev) {}
ControlState GetState() const override;
private:
const u8 m_index;
const u16 m_code;
libevdev* m_dev;
};
class Axis : public Core::Device::Input
{
public:
std::string GetName() const override;
Axis(u8 index, u16 code, bool upper, libevdev* dev);
ControlState GetState() const override;
private:
const u16 m_code;
const u8 m_index;
int m_range;
int m_base;
libevdev* m_dev;
};
class Effect : public Core::Device::Output
{
public: