diff --git a/src/modules/event/sdl/wrap_Event.cpp b/src/modules/event/sdl/wrap_Event.cpp index 8a519b780..a7f93a40e 100644 --- a/src/modules/event/sdl/wrap_Event.cpp +++ b/src/modules/event/sdl/wrap_Event.cpp @@ -108,8 +108,8 @@ namespace sdl return 4; case Event::TYPE_JOYSTICK_PRESSED: case Event::TYPE_JOYSTICK_RELEASED: - lua_pushinteger(L, msg.joystick.index); - lua_pushinteger(L, msg.joystick.button); + lua_pushinteger(L, msg.joystick.index+1); + lua_pushinteger(L, msg.joystick.button+1); return 3; case Event::TYPE_FOCUS: lua_pushboolean(L, msg.focus.f);