InputCommon: Detect when evdev exposes acceleration/gyroscope data.
This commit is contained in:
1 parent
d8c62b5965
commit
1180c231a6
5 files changed
+155
-76
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user