mirror of https://git.suyu.dev/suyu/suyu
address comments
This commit is contained in:
parent
c19ad21ae8
commit
cfdec68d5a
|
@ -77,10 +77,10 @@ void Controller_ConsoleSixAxis::OnLoadInputDevices() {
|
||||||
Input::CreateDevice<Input::MotionDevice>);
|
Input::CreateDevice<Input::MotionDevice>);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Controller_ConsoleSixAxis::SetTransferMemoryPointer(u8* t_mem_1) {
|
void Controller_ConsoleSixAxis::SetTransferMemoryPointer(u8* t_mem) {
|
||||||
is_transfer_memory_set = true;
|
is_transfer_memory_set = true;
|
||||||
transfer_memory = t_mem_1;
|
transfer_memory = t_mem;
|
||||||
};
|
}
|
||||||
|
|
||||||
void Controller_ConsoleSixAxis::ResetTimestamp() {
|
void Controller_ConsoleSixAxis::ResetTimestamp() {
|
||||||
auto& cur_entry = seven_six_axis.sevensixaxis_states[seven_six_axis.header.last_entry_index];
|
auto& cur_entry = seven_six_axis.sevensixaxis_states[seven_six_axis.header.last_entry_index];
|
||||||
|
|
|
@ -30,7 +30,7 @@ public:
|
||||||
void OnLoadInputDevices() override;
|
void OnLoadInputDevices() override;
|
||||||
|
|
||||||
// Called on InitializeSevenSixAxisSensor
|
// Called on InitializeSevenSixAxisSensor
|
||||||
void SetTransferMemoryPointer(u8* t_mem_1);
|
void SetTransferMemoryPointer(u8* t_mem);
|
||||||
|
|
||||||
// Called on ResetSevenSixAxisSensorTimestamp
|
// Called on ResetSevenSixAxisSensorTimestamp
|
||||||
void ResetTimestamp();
|
void ResetTimestamp();
|
||||||
|
@ -71,8 +71,8 @@ private:
|
||||||
|
|
||||||
using MotionArray =
|
using MotionArray =
|
||||||
std::array<std::unique_ptr<Input::MotionDevice>, Settings::NativeMotion::NUM_MOTIONS_HID>;
|
std::array<std::unique_ptr<Input::MotionDevice>, Settings::NativeMotion::NUM_MOTIONS_HID>;
|
||||||
u8* transfer_memory;
|
|
||||||
MotionArray motions;
|
MotionArray motions;
|
||||||
|
u8* transfer_memory = nullptr;
|
||||||
bool is_transfer_memory_set = false;
|
bool is_transfer_memory_set = false;
|
||||||
ConsoleSharedMemory console_six_axis{};
|
ConsoleSharedMemory console_six_axis{};
|
||||||
SevenSixAxisMemory seven_six_axis{};
|
SevenSixAxisMemory seven_six_axis{};
|
||||||
|
|
Loading…
Reference in New Issue