gui/input: add gui input with native events

This commit is contained in:
Megamouse 2024-02-11 00:06:41 +01:00
parent 3acd442c2e
commit b032f2dd87
12 changed files with 783 additions and 3 deletions

View file

@ -1,6 +1,7 @@
#include "stdafx.h"
#include "Emu/IdManager.h"
#include "Emu/system_config.h"
#include "Emu/System.h"
#include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/lv2/sys_process.h"
#include "Emu/Cell/lv2/sys_sync.h"
@ -165,7 +166,11 @@ void cellPad_NotifyStateChange(usz index, u64 /*state*/, bool locked)
extern void pad_state_notify_state_change(usz index, u32 state)
{
send_sys_io_connect_event(index, state);
// Prevents accidental calls from pad handlers while the emulation is not running.
if (Emu.IsRunning())
{
send_sys_io_connect_event(index, state);
}
}
error_code cellPadInit(ppu_thread& ppu, u32 max_connect)