Savestates Support For PS3 Emulation (#10478)

This commit is contained in:
Elad Ashkenazi 2022-07-04 16:02:17 +03:00 committed by GitHub
parent 969b9eb89d
commit fcd297ffb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
154 changed files with 4948 additions and 635 deletions

View file

@ -33,10 +33,6 @@ void basic_keyboard_handler::Init(const u32 max_connect)
m_info.status[0] = CELL_KB_STATUS_CONNECTED; // (TODO: Support for more keyboards)
}
basic_keyboard_handler::basic_keyboard_handler() : QObject()
{
}
/* Sets the target window for the event handler, and also installs an event filter on the target. */
void basic_keyboard_handler::SetTargetWindow(QWindow* target)
{

View file

@ -8,11 +8,11 @@
class basic_keyboard_handler final : public KeyboardHandlerBase, public QObject
{
using KeyboardHandlerBase::KeyboardHandlerBase;
public:
void Init(const u32 max_connect) override;
explicit basic_keyboard_handler();
void SetTargetWindow(QWindow* target);
bool eventFilter(QObject* watched, QEvent* event) override;
void keyPressEvent(QKeyEvent* event);

View file

@ -28,9 +28,6 @@ void basic_mouse_handler::Init(const u32 max_connect)
m_info.product_id[0] = 0x1234;
}
basic_mouse_handler::basic_mouse_handler() : QObject()
{}
/* Sets the target window for the event handler, and also installs an event filter on the target. */
void basic_mouse_handler::SetTargetWindow(QWindow* target)
{

View file

@ -9,11 +9,11 @@
class basic_mouse_handler final : public MouseHandlerBase, public QObject
{
using MouseHandlerBase::MouseHandlerBase;
public:
void Init(const u32 max_connect) override;
basic_mouse_handler();
void SetTargetWindow(QWindow* target);
void MouseButtonDown(QMouseEvent* event);
void MouseButtonUp(QMouseEvent* event);

View file

@ -42,6 +42,7 @@ pad_thread::pad_thread(void *_curthread, void *_curwindow, std::string_view titl
{
pad::g_title_id = title_id;
pad::g_current = this;
pad::g_reset = true;
}
pad_thread::~pad_thread()
@ -212,7 +213,8 @@ void pad_thread::SetIntercepted(bool intercepted)
void pad_thread::operator()()
{
pad::g_reset = true;
Init();
pad::g_reset = false;
atomic_t<pad_handler_mode> pad_mode{g_cfg.io.pad_mode.get()};
std::vector<std::unique_ptr<named_thread<std::function<void()>>>> threads;