AnalogController: Rumble support

This commit is contained in:
Connor McLaughlin
2019-12-15 23:22:53 +10:00
parent 1d2bd11b02
commit cbcb9b02b0
4 changed files with 88 additions and 8 deletions

View File

@ -36,6 +36,12 @@ public:
/// Changes the specified button state.
virtual void SetButtonState(s32 button_code, bool pressed);
/// Returns the number of vibration motors.
virtual u32 GetVibrationMotorCount() const;
/// Queries the state of the specified vibration motor. Values are normalized from 0..1.
virtual float GetVibrationMotorStrength(u32 motor);
/// Creates a new controller of the specified type.
static std::unique_ptr<Controller> Create(ControllerType type);