diff options
| author | JosJuice <josjuice@gmail.com> | 2019-01-30 19:37:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-30 19:37:24 +0100 |
| commit | 9340ddc7c945b06d0f5661b19c8e56d5a11a4ff6 (patch) | |
| tree | 7974a2b3d1574d71966029f847ea972c207ffd60 /Source/Core/InputCommon/ControllerInterface/Android/Android.cpp | |
| parent | 06241fa40952fa9ff3462e1a068fcf4111aa24d0 (diff) | |
| parent | 4979220cf0103d81023c32498870ecfd35ef473b (diff) | |
Merge pull request #7726 from zackhow/rumfast
Android: Optimize rumble call
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Android/Android.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Android/Android.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp b/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp index 768bdef89c..44dcbf234a 100644 --- a/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp @@ -239,9 +239,7 @@ void Touchscreen::Motor::Rumble(int padID, double state) { JNIEnv* env; IDCache::GetJavaVM()->AttachCurrentThread(&env, nullptr); - jmethodID rumbleMethod = - env->GetStaticMethodID(IDCache::GetNativeLibraryClass(), "rumble", "(ID)V"); - env->CallStaticVoidMethod(IDCache::GetNativeLibraryClass(), rumbleMethod, padID, state); + env->CallStaticVoidMethod(IDCache::GetNativeLibraryClass(), IDCache::GetDoRumble(), padID, state); IDCache::GetJavaVM()->DetachCurrentThread(); } } |
