|
@@ -152,6 +152,9 @@ extern "C"
|
|
#if defined(LOVE_ENABLE_PHYSICS)
|
|
#if defined(LOVE_ENABLE_PHYSICS)
|
|
extern int luaopen_love_physics(lua_State*);
|
|
extern int luaopen_love_physics(lua_State*);
|
|
#endif
|
|
#endif
|
|
|
|
+#if defined(LOVE_ENABLE_SENSOR)
|
|
|
|
+ extern int luaopen_love_sensor(lua_State*);
|
|
|
|
+#endif
|
|
#if defined(LOVE_ENABLE_SOUND)
|
|
#if defined(LOVE_ENABLE_SOUND)
|
|
extern int luaopen_love_sound(lua_State*);
|
|
extern int luaopen_love_sound(lua_State*);
|
|
#endif
|
|
#endif
|
|
@@ -221,6 +224,9 @@ static const luaL_Reg modules[] = {
|
|
#if defined(LOVE_ENABLE_PHYSICS)
|
|
#if defined(LOVE_ENABLE_PHYSICS)
|
|
{ "love.physics", luaopen_love_physics },
|
|
{ "love.physics", luaopen_love_physics },
|
|
#endif
|
|
#endif
|
|
|
|
+#if defined(LOVE_ENABLE_SENSOR)
|
|
|
|
+ { "love.sensor", luaopen_love_sensor },
|
|
|
|
+#endif
|
|
#if defined(LOVE_ENABLE_SOUND)
|
|
#if defined(LOVE_ENABLE_SOUND)
|
|
{ "love.sound", luaopen_love_sound },
|
|
{ "love.sound", luaopen_love_sound },
|
|
#endif
|
|
#endif
|