summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2015-07-06 07:57:31 +1200
committerScott Mansell <phiren@gmail.com>2015-07-07 16:59:10 +1200
commit6e969133f5e0f5fe9551a0ace39b242c5c3aac78 (patch)
treee15401e4cddbbc2106907a321d5b8860278dd732 /Source/Core/InputCommon/ControllerInterface/evdev/evdev.h
parentbd196e8c71853ef83a47156117efc2ad581f4b38 (diff)
evdev: Delete rumble effects on the correct file descriptor.
Was using m_id insted of m_fd. Also re-arrange the code so rumble effects always get deleted instead of just on stop commands.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/evdev/evdev.h')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/evdev/evdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h
index d1555c8cce..2926e44805 100644
--- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h
+++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h
@@ -52,6 +52,7 @@ private:
public:
std::string GetName() const override;
ForceFeedback(u16 type, libevdev* dev) : m_type(type), m_dev(dev), m_id(-1) { m_fd = libevdev_get_fd(dev); }
+ ~ForceFeedback();
void SetState(ControlState state) override;
private:
const u16 m_type;