浏览代码

Merge pull request #1434 from dgough/next

 Fixed delete on android text fields
Sean Taylor 12 年之前
父节点
当前提交
a0a61e922f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gameplay/src/PlatformAndroid.cpp

+ 1 - 1
gameplay/src/PlatformAndroid.cpp

@@ -1028,7 +1028,7 @@ static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
         switch(action)
         switch(action)
         {
         {
             case AKEY_EVENT_ACTION_DOWN:
             case AKEY_EVENT_ACTION_DOWN:
-                Game::getInstance()->keyEvent(Keyboard::KEY_PRESS, getKey(keycode, metastate));
+                gameplay::Platform::keyEventInternal(Keyboard::KEY_PRESS, getKey(keycode, metastate));
                 if (int character = getUnicode(keycode, metastate))
                 if (int character = getUnicode(keycode, metastate))
                     gameplay::Platform::keyEventInternal(Keyboard::KEY_CHAR, character);
                     gameplay::Platform::keyEventInternal(Keyboard::KEY_CHAR, character);
                 break;
                 break;