Tangent128 / luasdl2

A pure C binding of SDL 2.0 for Lua 5.1, Lua 5.2, and LuaJIT.
ISC License
385 stars 74 forks source link

lua-SDL2 syntax list? #21

Closed lewislepton closed 9 years ago

lewislepton commented 9 years ago

rather than carry on the yosemite build one, thought id ask here.

but where could i get a list of the lua-SDL2 syntax? with everything. ill work on a cheap auto-complete for it to make it easier coding on say, sublime, or whatever else. just dont know how to get the syntax list. just so when future people use this, there is an option.

thanks

Tangent128 commented 9 years ago

You mean a list of the symbols used in the API?

Technically, everything is in the wiki, but that can be a bit hard to parse.

Here is a list of all the keys in the SDL table & all metatables: gist

You probably want to remove the first column with cut/awk/sed/whatever, but I left it on in case the context is useful to you.

lewislepton commented 9 years ago

sweet. thanks man. aye, just a way really to print out functions, classes ec etc that make using lua-sdl2. true it all in the API, but a list is good, because then it can be looked through then edited once printed

thanks

lewislepton commented 9 years ago

really its all the stuff that has SDL.whatever and things like KeyPressed.whatever. like if you were on any IDE and it popped up with a list once you starte typing

ill give this a look

lewislepton commented 9 years ago

alright man.

made a auto-complete for sublime. could be used with anything really, its just a JSON table. but here if you are interested https://github.com/lewislepton/Lua-SDL2AutoComplete

lewislepton commented 9 years ago

also put a link for this repo as well with it ;)

Tangent128 commented 9 years ago

Added a link on the wiki.