Here's a new lib that i just finished that will allow game controller support for Lua fans!
EDIT:
Source: https://onedrive.live.com/redir?resid=1653f4923c37f970!278&authkey=!ABW8a3PdvzR_8cE&ithint=file%2czip
Binaries (dll & so): https://onedrive.live.com/redir?resid=1653f4923c37f970!284&authkey=!AM0p2lTBH1mMSzk&ithint=file%2czip
A lua example is provided, you can simply overwrite your existing App.lua with mine on a new test project.
* Note: Lua sandbox must be disabled to use libs.
Unfortunately i don't have linux installed so i couldn't compile it for that platform and I was able to compile it under Linux but i didn't get the chance to test it as i don't have the sdl2 binary libs.
I included the full source should anyone want to re-compile it. Those that don't want to, simply copy LuaGamePad.dll file where your game executable is. You'll need to copy SDL2.DLL there as well, it's included.
Tested with:
- Logitech Rumblepad
- Xbox 360 controller (XInput)
Cheers!