mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-11-25 07:13:24 +01:00
ControllerInterface: evdev: Replace unclear bool parameter with enum class.
This commit is contained in:
1 parent
52aa39991c
commit
6cc8775510
2 files changed
+18
-11
No files matched your search
@@ -88,12 +88,18 @@ private:
|
||||
class RumbleEffect : public Effect
|
||||
{
|
||||
public:
|
||||
RumbleEffect(int fd, bool use_strong);
|
||||
enum class Motor : u8
|
||||
{
|
||||
WEAK,
|
||||
STRONG,
|
||||
};
|
||||
|
||||
RumbleEffect(int fd, Motor motor);
|
||||
bool UpdateParameters(ControlState state) override;
|
||||
std::string GetName() const override;
|
||||
|
||||
private:
|
||||
const bool m_use_strong_motor;
|
||||
const Motor m_motor;
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
Reference in new issue
Block a user