mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
InputCommon: Detect when evdev exposes acceleration/gyroscope data.
This commit is contained in:
@ -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