From 0d748c2794721d9f15f766616e9861fdd821750a Mon Sep 17 00:00:00 2001 From: Rinnegatamante Date: Sun, 28 Aug 2016 22:08:59 +0200 Subject: [PATCH] Properly detecting CANCELED status. Properly detecting CANCELED status. --- source/luaKeyboard.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/luaKeyboard.cpp b/source/luaKeyboard.cpp index 245b109..d4bec89 100644 --- a/source/luaKeyboard.cpp +++ b/source/luaKeyboard.cpp @@ -33,9 +33,7 @@ #include #include "include/luaplayer.h" #include "include/utils.h" -#include -#include -#include +#include #define stringify(str) #str #define VariableRegister(lua, value) do { lua_pushinteger(lua, value); lua_setglobal (lua, stringify(value)); } while(0) @@ -99,7 +97,7 @@ static int lua_state(lua_State *L){ SceImeDialogResult result; memset(&result, 0, sizeof(SceImeDialogResult)); sceImeDialogGetResult(&result); - if (result.button == SCE_IME_DIALOG_BUTTON_CLOSE) { + if (result.button != SCE_IME_DIALOG_BUTTON_ENTER) { status = (SceCommonDialogStatus)CANCELED; } }