mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
Qt: Add custom pad configs
Add a custom pad config for every game.
This commit is contained in:
parent
cb78522620
commit
9aa08313e3
17 changed files with 332 additions and 105 deletions
|
|
@ -142,9 +142,9 @@ void rpcs3_app::InitializeCallbacks()
|
|||
RequestCallAfter(std::move(func));
|
||||
};
|
||||
|
||||
callbacks.reset_pads = [this]()
|
||||
callbacks.reset_pads = [this](const std::string& title_id = "")
|
||||
{
|
||||
pad::get_current_handler()->Reset();
|
||||
pad::get_current_handler()->Reset(title_id);
|
||||
};
|
||||
callbacks.enable_pads = [this](bool enable)
|
||||
{
|
||||
|
|
@ -183,9 +183,9 @@ void rpcs3_app::InitializeCallbacks()
|
|||
}
|
||||
};
|
||||
|
||||
callbacks.get_pad_handler = [this]() -> std::shared_ptr<pad_thread>
|
||||
callbacks.get_pad_handler = [this](const std::string& title_id) -> std::shared_ptr<pad_thread>
|
||||
{
|
||||
return std::make_shared<pad_thread>(thread(), gameWindow);
|
||||
return std::make_shared<pad_thread>(thread(), gameWindow, title_id);
|
||||
};
|
||||
|
||||
callbacks.get_gs_frame = [this]() -> std::unique_ptr<GSFrameBase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue