mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
Qt/input: add shortcut for toggling emulated mouse and keyboard
This commit is contained in:
parent
ff84e7c6e2
commit
ff6a4bb72d
21 changed files with 192 additions and 29 deletions
|
|
@ -16,6 +16,7 @@
|
|||
#endif
|
||||
#include "keyboard_pad_handler.h"
|
||||
#include "Emu/Io/Null/NullPadHandler.h"
|
||||
#include "Emu/Io/interception.h"
|
||||
#include "Emu/Io/PadHandler.h"
|
||||
#include "Emu/Io/pad_config.h"
|
||||
#include "Emu/System.h"
|
||||
|
|
@ -200,6 +201,9 @@ void pad_thread::Init()
|
|||
|| (pad->m_class_type >= CELL_PAD_FAKE_TYPE_FIRST && pad->m_class_type < CELL_PAD_FAKE_TYPE_LAST);
|
||||
connect_usb_controller(i, input::get_product_by_vid_pid(pad->m_vendor_id, pad->m_product_id));
|
||||
}
|
||||
|
||||
// Initialize active mouse and keyboard. Activate pad handler if one exists.
|
||||
input::set_mouse_and_keyboard(m_handlers.contains(pad_handler::keyboard) ? input::active_mouse_and_keyboard::pad : input::active_mouse_and_keyboard::emulated);
|
||||
}
|
||||
|
||||
void pad_thread::SetRumble(const u32 pad, u8 large_motor, bool small_motor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue