Skrakle Posted April 19, 2015 Share Posted April 19, 2015 (edited) 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! Edited April 26, 2015 by Skrakle 4 Quote Link to comment Share on other sites More sharing options...
Skrakle Posted April 19, 2015 Author Share Posted April 19, 2015 The dll file was compiled on 64-bit os, i've recompiled a 32-bit version, you can download it here https://onedrive.live.com/redir?resid=1653f4923c37f970!281&authkey=!ALGpG7kylnkqhW4&ithint=file%2czip The 32-bit dll files are now part of the original package listed in the first post. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted April 23, 2015 Share Posted April 23, 2015 Hi Skrakle, I placed your DLLS at project root folder , same directory as Lua51.dll, I modified App.lua, but launching the game i have this package error : Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Skrakle Posted April 23, 2015 Author Share Posted April 23, 2015 One of the dll is probably 64bit, someone else had this problem, i repackaged the binaries, it should work and make sure you disable lua sandbox. https://onedrive.live.com/redir?resid=1653f4923c37f970!276&authkey=!AOU-Ikv6sEBjcCY&ithint=file%2czip Quote Link to comment Share on other sites More sharing options...
YouGroove Posted April 23, 2015 Share Posted April 23, 2015 I got same error. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Skrakle Posted April 23, 2015 Author Share Posted April 23, 2015 I'm not sure why it's not loading it, seems to be the same behaviour as if sandbox were enabled and if the .dll would be missing, you'd probably get a different error message. I zipped a new werk project that is working, the dlls are in it, i tested it on 2 computers. https://onedrive.live.com/redir?resid=1653f4923c37f970!280&authkey=!AJZ_t62yU-UXsJA&ithint=file%2czip 1 Quote Link to comment Share on other sites More sharing options...
Daniel0213 Posted April 29, 2015 Share Posted April 29, 2015 The application works correctly for me. XBOX 360 Controller. * Note: Lua sandbox must be disabled to use libs. Thanks Skrakle!!! 1 Quote CPU: Intel Quad core Q8400 / GPU: Nvidia GTX 660 / RAM: 6GB DDR3 1333MHz / Windows 8.1 (x64) Link to comment Share on other sites More sharing options...
karmacomposer Posted December 30, 2023 Share Posted December 30, 2023 Is this still available for Leadwerks? Can we use newer Xbox controllers with it? Thanks Mike Quote MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives My Patreon page: https://www.patreon.com/michaelfelkercomposer My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213 Custom synths and sounds - http://www.supersynths.com Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.