Fixed compilation on non-touch targets
This commit is contained in:
committed by
Raphael Coeffic
parent
10615b0201
commit
7e5d8ee7ac
@@ -28,12 +28,6 @@ extern "C" {
|
||||
#include "lua.h"
|
||||
};
|
||||
|
||||
#define EVT_TOUCH_SWIPE_LOCK 4
|
||||
#define EVT_TOUCH_SWIPE_SPEED 60
|
||||
#define EVT_TOUCH_SWIPE_TIMEOUT 50
|
||||
|
||||
static tmr10ms_t _swipeTimeOut = 0;
|
||||
|
||||
static LuaEventData _lua_event_buffer[EVENT_BUFFER_SIZE];
|
||||
|
||||
LuaEventData::LuaEventData()
|
||||
@@ -80,6 +74,14 @@ LuaEventData* luaGetEventSlot(event_t event)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
#if defined(HARDWARE_TOUCH)
|
||||
|
||||
#define EVT_TOUCH_SWIPE_LOCK 4
|
||||
#define EVT_TOUCH_SWIPE_SPEED 60
|
||||
#define EVT_TOUCH_SWIPE_TIMEOUT 50
|
||||
|
||||
static tmr10ms_t _swipeTimeOut = 0;
|
||||
|
||||
static void l_pushtableint(lua_State* ls, const char * key, int value)
|
||||
{
|
||||
lua_pushstring(ls, key);
|
||||
@@ -129,3 +131,4 @@ void luaPushTouchEventTable(lua_State* ls, LuaEventData* evt)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user