Added love.touch.getPressure(touchid). Not useful on most touch-capable devices, but I do expect Apple's Force Touch to make it into iPhones in the near future.

This commit is contained in:
Alex Szpakowski
2015-03-24 20:45:21 -03:00
parent b8cb16dc95
commit 78dd8bc547
8 changed files with 62 additions and 26 deletions
+3
View File
@@ -24,14 +24,17 @@
// LOVE
#include "Touch.h"
#include "common/runtime.h"
#include "common/int.h"
namespace love
{
namespace touch
{
int64 luax_checktouchid(lua_State *L, int idx);
int w_getIDs(lua_State *L);
int w_getPosition(lua_State *L);
int w_getPressure(lua_State *L);
extern "C" LOVE_EXPORT int luaopen_love_touch(lua_State *L);
} // touch