|
@@ -187,6 +187,12 @@ int w_hasScreenKeyboard(lua_State *L)
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+int w_isScreenKeyboardVisible(lua_State *L)
|
|
|
|
+{
|
|
|
|
+ luax_pushboolean(L, instance()->isScreenKeyboardVisible());
|
|
|
|
+ return 1;
|
|
|
|
+}
|
|
|
|
+
|
|
int w_isModifierActive(lua_State* L)
|
|
int w_isModifierActive(lua_State* L)
|
|
{
|
|
{
|
|
const char *keystr = luaL_checkstring(L, 1);
|
|
const char *keystr = luaL_checkstring(L, 1);
|
|
@@ -206,6 +212,7 @@ static const luaL_Reg functions[] =
|
|
{ "setTextInput", w_setTextInput },
|
|
{ "setTextInput", w_setTextInput },
|
|
{ "hasTextInput", w_hasTextInput },
|
|
{ "hasTextInput", w_hasTextInput },
|
|
{ "hasScreenKeyboard", w_hasScreenKeyboard },
|
|
{ "hasScreenKeyboard", w_hasScreenKeyboard },
|
|
|
|
+ { "isScreenKeyboardVisible", w_isScreenKeyboardVisible },
|
|
{ "isDown", w_isDown },
|
|
{ "isDown", w_isDown },
|
|
{ "isScancodeDown", w_isScancodeDown },
|
|
{ "isScancodeDown", w_isScancodeDown },
|
|
{ "getScancodeFromKey", w_getScancodeFromKey },
|
|
{ "getScancodeFromKey", w_getScancodeFromKey },
|