mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
ControllerInterface: SDL: Replace unclear bool parameter with enum class.
This commit is contained in:
@ -124,13 +124,19 @@ private:
|
||||
class LeftRightEffect : public HapticEffect
|
||||
{
|
||||
public:
|
||||
LeftRightEffect(SDL_Haptic* haptic, bool use_strong_motor);
|
||||
enum class Motor : u8
|
||||
{
|
||||
Weak,
|
||||
Strong,
|
||||
};
|
||||
|
||||
LeftRightEffect(SDL_Haptic* haptic, Motor motor);
|
||||
std::string GetName() const override;
|
||||
|
||||
private:
|
||||
bool UpdateParameters(s16 value) override;
|
||||
|
||||
const bool m_use_strong_motor;
|
||||
const Motor m_motor;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user