Search the Community
Showing results for tags 'joystick'.
-
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!
-
Hey! During the time of me playing around to get controllers to work in Leadwerks, I came across SDL bindings for Lua. So I compiled and tried it and it worked fine without problems. But, when I later try to require it from Leadwerks, I get the following error: "error loading module 'SDL' from file './SDL.so'" : 0 : undefined symbol When running outside of Leadwerks, I'm running it with Lua 5.1, which afaik, is what Leadwerks uses. Any help is much appreciated! Thanks! Regards, Krax