mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-15 14:26:01 +00:00
[Android] Try to improve handling of DPAD|GAMEPAD + KEYBOARD devices
It seems some devices report themselves as DPAD or GAMEPAD and KEYBOARD as well, and we need to route different keycodes to different parts of SDL.
This commit is contained in:
@@ -148,19 +148,19 @@ void Java_org_libsdl_app_SDLActivity_onNativeResize(
|
||||
}
|
||||
|
||||
// Paddown
|
||||
void Java_org_libsdl_app_SDLActivity_onNativePadDown(
|
||||
int Java_org_libsdl_app_SDLActivity_onNativePadDown(
|
||||
JNIEnv* env, jclass jcls,
|
||||
jint padId, jint keycode)
|
||||
{
|
||||
Android_OnPadDown(padId, keycode);
|
||||
return Android_OnPadDown(padId, keycode);
|
||||
}
|
||||
|
||||
// Padup
|
||||
void Java_org_libsdl_app_SDLActivity_onNativePadUp(
|
||||
int Java_org_libsdl_app_SDLActivity_onNativePadUp(
|
||||
JNIEnv* env, jclass jcls,
|
||||
jint padId, jint keycode)
|
||||
{
|
||||
Android_OnPadUp(padId, keycode);
|
||||
return Android_OnPadUp(padId, keycode);
|
||||
}
|
||||
|
||||
/* Joy */
|
||||
|
Reference in New Issue
Block a user