diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-04-20 19:00:26 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2022-04-24 00:11:43 +0200 |
commit | 0f3ad939a85494a8a9bdcb6f357c774f385f647e (patch) | |
tree | 1c050188b8ffb83815adcef9fd3efd200627cb90 /src/core/hle/service/hid/controllers/debug_pad.h | |
parent | service: hid: Access shared memory directly (diff) | |
download | yuzu-0f3ad939a85494a8a9bdcb6f357c774f385f647e.tar yuzu-0f3ad939a85494a8a9bdcb6f357c774f385f647e.tar.gz yuzu-0f3ad939a85494a8a9bdcb6f357c774f385f647e.tar.bz2 yuzu-0f3ad939a85494a8a9bdcb6f357c774f385f647e.tar.lz yuzu-0f3ad939a85494a8a9bdcb6f357c774f385f647e.tar.xz yuzu-0f3ad939a85494a8a9bdcb6f357c774f385f647e.tar.zst yuzu-0f3ad939a85494a8a9bdcb6f357c774f385f647e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/controllers/debug_pad.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/core/hle/service/hid/controllers/debug_pad.h b/src/core/hle/service/hid/controllers/debug_pad.h index 543e9f3a6..68ff0ea79 100644 --- a/src/core/hle/service/hid/controllers/debug_pad.h +++ b/src/core/hle/service/hid/controllers/debug_pad.h @@ -41,11 +41,11 @@ private: // This is nn::hid::DebugPadState struct DebugPadState { - s64 sampling_number; - DebugPadAttribute attribute; - Core::HID::DebugPadButton pad_state; - Core::HID::AnalogStickState r_stick; - Core::HID::AnalogStickState l_stick; + s64 sampling_number{}; + DebugPadAttribute attribute{}; + Core::HID::DebugPadButton pad_state{}; + Core::HID::AnalogStickState r_stick{}; + Core::HID::AnalogStickState l_stick{}; }; static_assert(sizeof(DebugPadState) == 0x20, "DebugPadState is an invalid state"); @@ -57,9 +57,8 @@ private: }; static_assert(sizeof(DebugPadSharedMemory) == 0x400, "DebugPadSharedMemory is an invalid size"); - DebugPadSharedMemory* shared_memory; - DebugPadState next_state{}; - Core::HID::EmulatedController* controller; + DebugPadSharedMemory* shared_memory = nullptr; + Core::HID::EmulatedController* controller = nullptr; }; } // namespace Service::HID |