mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-01-21 13:09:43 -03:00
InputCommon: Make ControllerInterface RegisterDevicesChangedCallback use Common::HookableEvent.
This commit is contained in:
@@ -454,8 +454,8 @@ void RegisterDevicesChangedCallbackIfNeeded(JNIEnv* env, jclass controller_inter
|
||||
const jmethodID controller_interface_on_devices_changed =
|
||||
env->GetStaticMethodID(global_controller_interface_class, "onDevicesChanged", "()V");
|
||||
|
||||
g_controller_interface.RegisterDevicesChangedCallback(
|
||||
[global_controller_interface_class, controller_interface_on_devices_changed] {
|
||||
static Common::EventHook event_hook = g_controller_interface.RegisterDevicesChangedCallback(
|
||||
"Android", [global_controller_interface_class, controller_interface_on_devices_changed] {
|
||||
IDCache::GetEnvForThread()->CallStaticVoidMethod(global_controller_interface_class,
|
||||
controller_interface_on_devices_changed);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user