mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
Qt: use mouse input to map basic mouse buttons
This commit is contained in:
parent
eb8ab8ef15
commit
7ffb61f650
9 changed files with 283 additions and 147 deletions
|
|
@ -658,12 +658,12 @@ std::vector<pad_list_entry> keyboard_pad_handler::list_devices()
|
|||
return list_devices;
|
||||
}
|
||||
|
||||
std::string keyboard_pad_handler::GetMouseName(const QMouseEvent* event) const
|
||||
std::string keyboard_pad_handler::GetMouseName(const QMouseEvent* event)
|
||||
{
|
||||
return GetMouseName(event->button());
|
||||
}
|
||||
|
||||
std::string keyboard_pad_handler::GetMouseName(u32 button) const
|
||||
std::string keyboard_pad_handler::GetMouseName(u32 button)
|
||||
{
|
||||
if (const auto it = mouse_list.find(button); it != mouse_list.cend())
|
||||
return it->second;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue