mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Savestates Support For PS3 Emulation (#10478)
This commit is contained in:
parent
969b9eb89d
commit
fcd297ffb2
154 changed files with 4948 additions and 635 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue