diff options
| author | bunnei <bunneidev@gmail.com> | 2020-09-20 12:39:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-20 12:39:20 -0700 |
| commit | 754109fd54fccc844a41b8f42de1969b14c55721 (patch) | |
| tree | 356b611e59fde4c96d5ca74427cd67f8db718e45 /src/core/hle/service/hid/controllers/npad.cpp | |
| parent | 8a85a562ed775184b081795cdff826263642278a (diff) | |
| parent | ab961e07014cb308cc983fa869696bf5cb9a0c7d (diff) | |
Merge pull request #4683 from Morph1984/NpadHandheldActivationMode-impl
hid: Implement Get/SetNpadHandheldActivationMode
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 b65d59373..620386cd1 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp @@ -593,6 +593,14 @@ Controller_NPad::NpadHoldType Controller_NPad::GetHoldType() const { return hold_type; } +void Controller_NPad::SetNpadHandheldActivationMode(NpadHandheldActivationMode activation_mode) { + handheld_activation_mode = activation_mode; +} + +Controller_NPad::NpadHandheldActivationMode Controller_NPad::GetNpadHandheldActivationMode() const { + return handheld_activation_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()); |
