You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to urh...@googlegroups.com
I'm trying to access the Touches array (TouchState) in lua. It seems that the lua API is currently missing this one. Any hints?
Lasse Öörni
unread,
Dec 31, 2013, 10:53:49 AM12/31/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
There's some months since Aster (Lua script bindings maintainer) has committed anything to the LuaScript subsystem. It's possible that someone else needs to step up to complete the Lua bindings. The bindings were originally tested by porting all the C++ / AngelScript samples to Lua, but they don't exercise all of the engine functions, such as touch input.
You are of course very welcome to contribute.
EDIT: even though you can't access the touches as an array, you should be able to call GetNumTouches() and GetTouch() by index from the Input object.
Mike
unread,
Dec 31, 2013, 11:38:04 AM12/31/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to urh...@googlegroups.com
Thanks Lasse,
For now it is beyond my skills, hope to contribute in a near future.
Mike
unread,
Dec 31, 2013, 1:45:54 PM12/31/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to urh...@googlegroups.com
The GetTouch() by index did the job perfectly. I'll post an example soon.
Mike
unread,
Dec 31, 2013, 4:56:36 PM12/31/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to urh...@googlegroups.com
Example #18 with touch inputs, based on NinjaSnowWar. Tested on Android with LuaJIT enabled.