mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add back type casting when sending event to lua stack
This commit is contained in:
6
input.c
6
input.c
@@ -306,13 +306,13 @@ static int waitForInput(lua_State *L) {
|
||||
if(n == sizeof(struct input_event)) {
|
||||
lua_newtable(L);
|
||||
lua_pushstring(L, "type");
|
||||
lua_pushinteger(L, input.type);
|
||||
lua_pushinteger(L, (int) input.type);
|
||||
lua_settable(L, -3);
|
||||
lua_pushstring(L, "code");
|
||||
lua_pushinteger(L, input.code);
|
||||
lua_pushinteger(L, (int) input.code);
|
||||
lua_settable(L, -3);
|
||||
lua_pushstring(L, "value");
|
||||
lua_pushinteger(L, input.value);
|
||||
lua_pushinteger(L, (int) input.value);
|
||||
lua_settable(L, -3);
|
||||
return 1;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user