From 2b1dd52750c8c85796be4a6785fb769481ec191c Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 14 Aug 2022 11:32:22 +0200 Subject: Android: Add input device selection --- Source/Core/InputCommon/ControllerInterface/Android/Android.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/Core/InputCommon/ControllerInterface/Android/Android.cpp') diff --git a/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp b/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp index 811343bf73..d2ccec4bb3 100644 --- a/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp @@ -1122,4 +1122,11 @@ Java_org_dolphinemu_dolphinemu_features_input_model_ControllerInterface_refreshD { g_controller_interface.RefreshDevices(); } + +JNIEXPORT jobjectArray JNICALL +Java_org_dolphinemu_dolphinemu_features_input_model_ControllerInterface_getAllDeviceStrings( + JNIEnv* env, jclass) +{ + return VectorToJStringArray(env, g_controller_interface.GetAllDeviceStrings()); +} } -- cgit v1.2.3