mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
Android: Add the advanced input mapping dialog
It's missing a lot of features from the PC version for now, like buttons for inserting functions and the ability to see what the expression evaluates to. I mostly just wanted to get something in place so you can set up rumble. Co-authored-by: Charles Lombardo <clombardo169@gmail.com>
This commit is contained in:
@ -25,6 +25,7 @@
|
||||
|
||||
#include "jni/AndroidCommon/AndroidCommon.h"
|
||||
#include "jni/AndroidCommon/IDCache.h"
|
||||
#include "jni/Input/CoreDevice.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
@ -1129,4 +1130,13 @@ Java_org_dolphinemu_dolphinemu_features_input_model_ControllerInterface_getAllDe
|
||||
{
|
||||
return VectorToJStringArray(env, g_controller_interface.GetAllDeviceStrings());
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_input_model_ControllerInterface_getDevice(
|
||||
JNIEnv* env, jclass, jstring j_device_string)
|
||||
{
|
||||
ciface::Core::DeviceQualifier qualifier;
|
||||
qualifier.FromString(GetJString(env, j_device_string));
|
||||
return CoreDeviceToJava(env, g_controller_interface.FindDevice(qualifier));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user