mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-23 02:11:07 +00:00
[npad] fixed hid history bug
This commit is contained in:
@@ -398,21 +398,21 @@ void NPad::InitNewlyAddedController(Kernel::KernelCore& kernel, u64 aruid, Core:
|
|||||||
void NPad::WriteEmptyEntry(NpadInternalState* npad) {
|
void NPad::WriteEmptyEntry(NpadInternalState* npad) {
|
||||||
NPadGenericState dummy_pad_state{};
|
NPadGenericState dummy_pad_state{};
|
||||||
NpadGcTriggerState dummy_gc_state{};
|
NpadGcTriggerState dummy_gc_state{};
|
||||||
dummy_pad_state.sampling_number = npad->fullkey_lifo.ReadCurrentEntry().sampling_number + 1;
|
dummy_pad_state.sampling_number = npad->fullkey_lifo.ReadCurrentEntry().state.sampling_number + 1;
|
||||||
npad->fullkey_lifo.WriteNextEntry(dummy_pad_state);
|
npad->fullkey_lifo.WriteNextEntry(dummy_pad_state);
|
||||||
dummy_pad_state.sampling_number = npad->handheld_lifo.ReadCurrentEntry().sampling_number + 1;
|
dummy_pad_state.sampling_number = npad->handheld_lifo.ReadCurrentEntry().state.sampling_number + 1;
|
||||||
npad->handheld_lifo.WriteNextEntry(dummy_pad_state);
|
npad->handheld_lifo.WriteNextEntry(dummy_pad_state);
|
||||||
dummy_pad_state.sampling_number = npad->joy_dual_lifo.ReadCurrentEntry().sampling_number + 1;
|
dummy_pad_state.sampling_number = npad->joy_dual_lifo.ReadCurrentEntry().state.sampling_number + 1;
|
||||||
npad->joy_dual_lifo.WriteNextEntry(dummy_pad_state);
|
npad->joy_dual_lifo.WriteNextEntry(dummy_pad_state);
|
||||||
dummy_pad_state.sampling_number = npad->joy_left_lifo.ReadCurrentEntry().sampling_number + 1;
|
dummy_pad_state.sampling_number = npad->joy_left_lifo.ReadCurrentEntry().state.sampling_number + 1;
|
||||||
npad->joy_left_lifo.WriteNextEntry(dummy_pad_state);
|
npad->joy_left_lifo.WriteNextEntry(dummy_pad_state);
|
||||||
dummy_pad_state.sampling_number = npad->joy_right_lifo.ReadCurrentEntry().sampling_number + 1;
|
dummy_pad_state.sampling_number = npad->joy_right_lifo.ReadCurrentEntry().state.sampling_number + 1;
|
||||||
npad->joy_right_lifo.WriteNextEntry(dummy_pad_state);
|
npad->joy_right_lifo.WriteNextEntry(dummy_pad_state);
|
||||||
dummy_pad_state.sampling_number = npad->palma_lifo.ReadCurrentEntry().sampling_number + 1;
|
dummy_pad_state.sampling_number = npad->palma_lifo.ReadCurrentEntry().state.sampling_number + 1;
|
||||||
npad->palma_lifo.WriteNextEntry(dummy_pad_state);
|
npad->palma_lifo.WriteNextEntry(dummy_pad_state);
|
||||||
dummy_pad_state.sampling_number = npad->system_ext_lifo.ReadCurrentEntry().sampling_number + 1;
|
dummy_pad_state.sampling_number = npad->system_ext_lifo.ReadCurrentEntry().state.sampling_number + 1;
|
||||||
npad->system_ext_lifo.WriteNextEntry(dummy_pad_state);
|
npad->system_ext_lifo.WriteNextEntry(dummy_pad_state);
|
||||||
dummy_gc_state.sampling_number = npad->gc_trigger_lifo.ReadCurrentEntry().sampling_number + 1;
|
dummy_gc_state.sampling_number = npad->gc_trigger_lifo.ReadCurrentEntry().state.sampling_number + 1;
|
||||||
npad->gc_trigger_lifo.WriteNextEntry(dummy_gc_state);
|
npad->gc_trigger_lifo.WriteNextEntry(dummy_gc_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user