mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
Input: Use global variables for pad modifications
This commit is contained in:
parent
9679ae68cb
commit
76faaf43f7
8 changed files with 51 additions and 80 deletions
|
@ -57,16 +57,7 @@ EmuCallbacks main_application::CreateCallbacks()
|
|||
{
|
||||
EmuCallbacks callbacks;
|
||||
|
||||
callbacks.reset_pads = [this](const std::string& title_id)
|
||||
{
|
||||
pad::get_current_handler()->Reset(title_id);
|
||||
};
|
||||
callbacks.enable_pads = [this](bool enable)
|
||||
{
|
||||
pad::get_current_handler()->SetEnabled(enable);
|
||||
};
|
||||
|
||||
callbacks.init_kb_handler = [=, this]()
|
||||
callbacks.init_kb_handler = [this]()
|
||||
{
|
||||
switch (keyboard_handler type = g_cfg.io.keyboard)
|
||||
{
|
||||
|
@ -86,7 +77,7 @@ EmuCallbacks main_application::CreateCallbacks()
|
|||
}
|
||||
};
|
||||
|
||||
callbacks.init_mouse_handler = [=, this]()
|
||||
callbacks.init_mouse_handler = [this]()
|
||||
{
|
||||
switch (mouse_handler type = g_cfg.io.mouse)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue