|
|
|
@ -39,6 +39,8 @@ void Controller_DebugPad::OnUpdate(const Core::Timing::CoreTiming& core_timing,
|
|
|
|
|
|
|
|
|
|
cur_entry.sampling_number = last_entry.sampling_number + 1;
|
|
|
|
|
cur_entry.sampling_number2 = cur_entry.sampling_number;
|
|
|
|
|
|
|
|
|
|
if (Settings::values.debug_pad_enabled) {
|
|
|
|
|
cur_entry.attribute.connected.Assign(1);
|
|
|
|
|
auto& pad = cur_entry.pad_state;
|
|
|
|
|
|
|
|
|
@ -66,6 +68,7 @@ void Controller_DebugPad::OnUpdate(const Core::Timing::CoreTiming& core_timing,
|
|
|
|
|
cur_entry.l_stick.y = static_cast<s32>(stick_l_y_f * HID_JOYSTICK_MAX);
|
|
|
|
|
cur_entry.r_stick.x = static_cast<s32>(stick_r_x_f * HID_JOYSTICK_MAX);
|
|
|
|
|
cur_entry.r_stick.y = static_cast<s32>(stick_r_y_f * HID_JOYSTICK_MAX);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::memcpy(data, &shared_memory, sizeof(SharedMemory));
|
|
|
|
|
}
|
|
|
|
|