mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user