Hi gang! Forgive me if this is someplace obvious, but is there a tutorial on extending LÖVE? It's been a long time since I wrote a C function and exposed it out to the LUA runtime and I can't quite remember all the steps.
Specifically, I'm trying to make a function love.getTouchpoints() that will read the multitouch input on my Apple trackpad.
Any guidance would be great!
-Nick
Extending LÖVE
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Extending LÖVE
I don't think so. Cool feature, though. Maybe other people can make Windows and Linux implementations so it can be added to vanilla LÖVE? (With an extra possible enum value for isSupported or something.)
Help us help you: attach a .love.
Re: Extending LÖVE
First, maybe (re)watch the Lua manual (http://www.lua.org/manual/5.1/) & ref (http://www.lua.org/pil/index.html). If "It's been a long time" then probably there's some valuable info to (re)discover in there. The chapters of the manual on htis topic --a who;le section, actually-- are great (if still a bit obscure at times).racarate wrote:Hi gang! Forgive me if this is someplace obvious, but is there a tutorial on extending LÖVE? It's been a long time since I wrote a C function and exposed it out to the LUA runtime and I can't quite remember all the steps.
Specifically, I'm trying to make a function love.getTouchpoints() that will read the multitouch input on my Apple trackpad.
Any guidance would be great!
-Nick
Denis
... la vita e estrany ...
Re: Extending LÖVE
Sorry, inverted the links up there...spir wrote: First, maybe (re)watch the Lua manual (http://www.lua.org/manual/5.1/) & ref (http://www.lua.org/pil/index.html). If "It's been a long time" then probably there's some valuable info to (re)discover in there. The chapters of the manual on htis topic --a who;le section, actually-- are great (if still a bit obscure at times).
Denis
... la vita e estrany ...
Re: Extending LÖVE
Ah, it was worth a shot -- thanks for pointing me to the right place in the docs, though!
Also you totally got my hopes up with "watch", I thought there was a Lua movie for this sort of thing.
Also you totally got my hopes up with "watch", I thought there was a Lua movie for this sort of thing.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Extending LÖVE
Ever heard of the edit button?spir wrote:Sorry, inverted the links up there...
Help us help you: attach a .love.
Who is online
Users browsing this forum: Google [Bot] and 4 guests