diff options
| author | JosJuice <josjuice@gmail.com> | 2022-04-18 17:17:48 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2023-03-03 22:28:24 +0100 |
| commit | 0dd8bbbbbb91f701f284561f244fa4e6f29b5f61 (patch) | |
| tree | b4b362105770a57c4f0a6bae8bf450be448472ca /Source/Android/jni/Input/NumericSetting.cpp | |
| parent | 1c26a85e35f94169ddc83e8174d6824aec82d322 (diff) | |
Android: Add extension selection
Diffstat (limited to 'Source/Android/jni/Input/NumericSetting.cpp')
| -rw-r--r-- | Source/Android/jni/Input/NumericSetting.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/Android/jni/Input/NumericSetting.cpp b/Source/Android/jni/Input/NumericSetting.cpp index 32805d15f8..1625d172ae 100644 --- a/Source/Android/jni/Input/NumericSetting.cpp +++ b/Source/Android/jni/Input/NumericSetting.cpp @@ -81,6 +81,27 @@ Java_org_dolphinemu_dolphinemu_features_input_model_controlleremu_NumericSetting return ControlReferenceToJava(env, &GetPointer(env, obj)->GetInputReference()); } +JNIEXPORT jint JNICALL +Java_org_dolphinemu_dolphinemu_features_input_model_controlleremu_NumericSetting_getIntValue( + JNIEnv* env, jobject obj) +{ + return GetPointer<int>(env, obj)->GetValue(); +} + +JNIEXPORT void JNICALL +Java_org_dolphinemu_dolphinemu_features_input_model_controlleremu_NumericSetting_setIntValue( + JNIEnv* env, jobject obj, jint value) +{ + GetPointer<int>(env, obj)->SetValue(value); +} + +JNIEXPORT jint JNICALL +Java_org_dolphinemu_dolphinemu_features_input_model_controlleremu_NumericSetting_getIntDefaultValue( + JNIEnv* env, jobject obj) +{ + return GetPointer<int>(env, obj)->GetDefaultValue(); +} + JNIEXPORT jdouble JNICALL Java_org_dolphinemu_dolphinemu_features_input_model_controlleremu_NumericSetting_getDoubleValue( JNIEnv* env, jobject obj) |
