gs: ensure gs has a first try at input handling before pad

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech 2021-06-17 06:07:05 +02:00 committed by Kojin
parent 31c70a7c38
commit d6e39b7ab0
1 changed files with 6 additions and 2 deletions

View File

@ -503,8 +503,12 @@ void Pcsx2App::LogicalVsync()
{
if( ev->key == 0 ) break;
// Give PAD first try to handle keys. If none of them handles the key, it will
// be passed to the main user interface.
// in the past, in the plugin api, all plugins would have a first chance at treating the
// input here, with the ui eventually dealing with it otherwise. Obviously this solution
// sucked and we had multiple components battling for input processing. I managed to make
// most of them go away during the plugin merge but GS still needs to process the inputs,
// we might want to move all the input handling in a frontend-specific file in the future -- govanify
GSkeyEvent((GSKeyEventData*)ev);
PadKeyDispatch( *ev );
}
}