Jump to content
Skrakle

[Lua lib] Game controller support

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

Share this post


Link to post

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

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...