Jump to content

[Lua lib] Game controller support


Skrakle
 Share

Recommended Posts

Here's a new lib that i just finished that will allow game controller support for Lua fans! smile.png

 

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 by Skrakle
  • Upvote 4
Link to comment
Share on other sites

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

  • Upvote 1
Link to comment
Share on other sites

  • 8 years later...

Is this still available for Leadwerks? Can we use newer Xbox controllers with it?

Thanks

Mike

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...