| 1 | diff -urN lua-evdev-evdev-2.2.1.orig/evdev/core.c lua-evdev-evdev-2.2.1/evdev/core.c |
| 2 | |
| 3 | |
| 4 | |
| 5 | } |
| 6 | |
| 7 | /* return: timestamp, event type, event code, event value */ |
| 8 | - lua_pushnumber(L, evt.time.tv_sec + evt.time.tv_usec/1000000.0); |
| 9 | + lua_pushnumber(L, evt.input_event_sec + evt.input_event_usec/1000000.0); |
| 10 | lua_pushinteger(L, evt.type); |
| 11 | lua_pushinteger(L, evt.code); |
| 12 | lua_pushinteger(L, evt.value); |