diff options
| author | bunnei <bunneidev@gmail.com> | 2020-11-28 15:22:46 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-28 15:22:46 -0800 |
| commit | 312a8bd4b47d3d359b9e65031a82e657e9e3df3a (patch) | |
| tree | ef98f8b9826ccc7317cf8351be9860bce920115b /src/core/hle/service/hid/controllers/npad.cpp | |
| parent | e0d30fc920330f3c46d1533e9ca3f28656fa7f12 (diff) | |
| parent | 3898d8f0d7fc51c7337eae4aa174b9545d52157e (diff) | |
Merge pull request #5021 from german77/StubCommunicationMode
HID: Stub set and get NpadCommunicationMode
Diffstat (limited to 'src/core/hle/service/hid/controllers/npad.cpp')
| -rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index e2539ded8..66c4fe60a 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp @@ -677,6 +677,14 @@ Controller_NPad::NpadHandheldActivationMode Controller_NPad::GetNpadHandheldActi return handheld_activation_mode; } +void Controller_NPad::SetNpadCommunicationMode(NpadCommunicationMode communication_mode_) { + communication_mode = communication_mode_; +} + +Controller_NPad::NpadCommunicationMode Controller_NPad::GetNpadCommunicationMode() const { + return communication_mode; +} + void Controller_NPad::SetNpadMode(u32 npad_id, NpadAssignments assignment_mode) { const std::size_t npad_index = NPadIdToIndex(npad_id); ASSERT(npad_index < shared_memory_entries.size()); |
