Fixed Shift keycode, for use with EmulatesHwKeyboard=y

This commit is contained in:
pelya
2012-11-11 21:05:20 +02:00
parent cfe64d0792
commit 9e26993b2b
3 changed files with 8 additions and 8 deletions

View File

@@ -816,6 +816,7 @@ JAVA_EXPORT_NAME(DemoRenderer_nativeTextInput) ( JNIEnv* env, jobject thiz, jin
{
if( ascii == 10 )
ascii = SDLK_RETURN;
if( !textInputBuffer )
SDL_ANDROID_MainThreadPushText(ascii, unicode);
else
@@ -1949,7 +1950,6 @@ extern void SDL_ANDROID_MainThreadPushText( int ascii, int unicode )
{
int shiftRequired;
//__android_log_print(ANDROID_LOG_INFO, "libSDL", "SDL_ANDROID_MainThreadPushText(): %i %i", scancode, unicode);
int nextEvent = getNextEventAndLock();
if( nextEvent == -1 )
return;