From cfdec68d5a8001453fbd49e9677f00ea3dfa9bcb Mon Sep 17 00:00:00 2001 From: german77 Date: Mon, 26 Apr 2021 22:07:16 -0500 Subject: address comments --- src/core/hle/service/hid/controllers/console_sixaxis.cpp | 6 +++--- src/core/hle/service/hid/controllers/console_sixaxis.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core/hle/service/hid') diff --git a/src/core/hle/service/hid/controllers/console_sixaxis.cpp b/src/core/hle/service/hid/controllers/console_sixaxis.cpp index 801e14b79..913768fab 100644 --- a/src/core/hle/service/hid/controllers/console_sixaxis.cpp +++ b/src/core/hle/service/hid/controllers/console_sixaxis.cpp @@ -77,10 +77,10 @@ void Controller_ConsoleSixAxis::OnLoadInputDevices() { Input::CreateDevice); } -void Controller_ConsoleSixAxis::SetTransferMemoryPointer(u8* t_mem_1) { +void Controller_ConsoleSixAxis::SetTransferMemoryPointer(u8* t_mem) { is_transfer_memory_set = true; - transfer_memory = t_mem_1; -}; + transfer_memory = t_mem; +} void Controller_ConsoleSixAxis::ResetTimestamp() { auto& cur_entry = seven_six_axis.sevensixaxis_states[seven_six_axis.header.last_entry_index]; diff --git a/src/core/hle/service/hid/controllers/console_sixaxis.h b/src/core/hle/service/hid/controllers/console_sixaxis.h index ac0501683..1fae98e94 100644 --- a/src/core/hle/service/hid/controllers/console_sixaxis.h +++ b/src/core/hle/service/hid/controllers/console_sixaxis.h @@ -30,7 +30,7 @@ public: void OnLoadInputDevices() override; // Called on InitializeSevenSixAxisSensor - void SetTransferMemoryPointer(u8* t_mem_1); + void SetTransferMemoryPointer(u8* t_mem); // Called on ResetSevenSixAxisSensorTimestamp void ResetTimestamp(); @@ -71,8 +71,8 @@ private: using MotionArray = std::array, Settings::NativeMotion::NUM_MOTIONS_HID>; - u8* transfer_memory; MotionArray motions; + u8* transfer_memory = nullptr; bool is_transfer_memory_set = false; ConsoleSharedMemory console_six_axis{}; SevenSixAxisMemory seven_six_axis{}; -- cgit v1.2.3