mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
It's now possible to build each module individually (as a DLL).
This commit is contained in:
@@ -71,6 +71,18 @@ namespace sdl
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
// List of constants.
|
||||
static const LuaConstant wrap_Event_constants[] = {
|
||||
{ "event_keypressed", Event::EVENT_KEYDOWN },
|
||||
{ "event_keyreleased", Event::EVENT_KEYUP },
|
||||
{ "event_mousepressed", Event::EVENT_MOUSEBUTTONDOWN },
|
||||
{ "event_mousereleased", Event::EVENT_MOUSEBUTTONUP },
|
||||
{ "event_joystickpressed", Event::EVENT_JOYBUTTONDOWN },
|
||||
{ "event_joystickreleased", Event::EVENT_JOYBUTTONUP },
|
||||
{ "event_quit", Event::EVENT_QUIT },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
int wrap_Event_open(lua_State * L)
|
||||
{
|
||||
if(instance == 0)
|
||||
@@ -87,9 +99,14 @@ namespace sdl
|
||||
|
||||
luax_register_gc(L, "love.event", instance);
|
||||
|
||||
return luax_register_module(L, wrap_Event_functions, 0, "event");
|
||||
return luax_register_module(L, wrap_Event_functions, 0, wrap_Event_constants, "event");
|
||||
}
|
||||
|
||||
} // sdl
|
||||
} // event
|
||||
} // love
|
||||
|
||||
int luaopen_love_event(lua_State * L)
|
||||
{
|
||||
return love::event::sdl::wrap_Event_open(L);
|
||||
}
|
||||
Reference in New Issue
Block a user