diff options
| author | David Marcec <dmarcecguzman@gmail.com> | 2018-10-11 00:58:47 +1100 |
|---|---|---|
| committer | David Marcec <dmarcecguzman@gmail.com> | 2018-10-11 00:58:47 +1100 |
| commit | 9e924f2ef2add0f351df6addc01c356b52c8d7be (patch) | |
| tree | a6bfc8c760bf12daab42f21a5dc077ab9fa8c89d /src/core/hle/service/hid/controllers/npad.h | |
| parent | 3d75c9cd7a75f7ef97e2e14fc2eb15e4bba92934 (diff) | |
Added BeginPermitVibrationSession and EndPermitVibrationSession
Used by Mario Party
Diffstat (limited to 'src/core/hle/service/hid/controllers/npad.h')
| -rw-r--r-- | src/core/hle/service/hid/controllers/npad.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h index 28c89768c..b1aa98820 100644 --- a/src/core/hle/service/hid/controllers/npad.h +++ b/src/core/hle/service/hid/controllers/npad.h @@ -111,6 +111,7 @@ public: void ConnectNPad(u32 npad_id); void DisconnectNPad(u32 npad_id); LedPattern GetLedPattern(u32 npad_id); + void SetVibrationEnabled(bool can_vibrate); private: struct CommonHeader { @@ -275,6 +276,7 @@ private: std::size_t controller_count{}; static constexpr std::array<u32, 10> npad_id_list{0, 1, 2, 3, 4, 5, 6, 7, 32, 16}; std::array<ControllerHolder, 10> connected_controllers{}; + bool can_controllers_vibrate{true}; void InitNewlyAddedControler(std::size_t controller_idx); }; |
