Search found 2 matches

by Psi Amp
Mon May 12, 2014 4:34 pm
Forum: Support and Development
Topic: [Lua] Call table keys as functions?
Replies: 3
Views: 2572

Re: [Lua] Call table keys as functions?

Hey, thanks for the quick reply micha The method you went over is pretty much exactly what I'm doing at the moment, and probably the best option asside from adopting a different implementation. I'm starting to get frustrated over brainstorming the best implementation for my project. What do you (or ...
by Psi Amp
Sat May 10, 2014 10:12 pm
Forum: Support and Development
Topic: [Lua] Call table keys as functions?
Replies: 3
Views: 2572

[Lua] Call table keys as functions?

Hey LÖVE forums, first post. This is more of a theoretical question than a problem: does anyone know if I use functions as keys to a table if there is a way to call the function given that I have a reference to the key? The question arose with my key binding system, where I have a table of keys that...