Jump to content

Recommended Posts

Posted (edited)

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
Posted

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 :

post-3271-0-07194900-1429817375_thumb.jpg

Stop toying and make games

Posted

The application works correctly for me.

 

XBOX 360 Controller.

 

* Note: Lua sandbox must be disabled to use libs.

 

Thanks Skrakle!!!

 

Lua%20controller.png

  • Upvote 1

CPU: Intel Quad core Q8400 / GPU: Nvidia GTX 660 / RAM: 6GB DDR3 1333MHz / Windows 8.1 (x64)

  • 8 years later...
Posted

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

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.

×
×
  • Create New...