YouGroove Posted January 19, 2014 Share Posted January 19, 2014 didn"t find it in LE 3.1 , it is possible actualy to have joystick ? Would be great to support general joystick and Xbox 360 one . Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Josh Posted January 20, 2014 Share Posted January 20, 2014 Aria is adding support for the Steam Controller right now. It's a much better input device; it's basically got the precision of a mouse in a gamepad form factor. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Rick Posted January 20, 2014 Share Posted January 20, 2014 So how true is that precision of a mouse in a gamepay? I assume you used it at Valve? I have a hard time believing that can honestly be achieved. Quote Link to comment Share on other sites More sharing options...
Guppy Posted January 20, 2014 Share Posted January 20, 2014 So how true is that precision of a mouse in a gamepay? I assume you used it at Valve? I have a hard time believing that can honestly be achieved. Would be good to add support for regulare controllers aswell tho the ps3/ouya/xbox ones are more widespread and being able to use those aswell would be a huge plus for the game / engine Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 20, 2014 Share Posted January 20, 2014 Yeps, I use the xbox controller for windows daily. Quote Link to comment Share on other sites More sharing options...
Michael_J Posted January 20, 2014 Share Posted January 20, 2014 In preparation for switching to LE I recently implemented SDL 2.0 into my game code for joystick/gamepad support. I know it's not native, but it's a cross-platform library, easy to implement, and free. I was reading data from my controllers in about 20 minutes. It's a c++ lib, so obviously this probably wouldn't help the LUA users too much. Maybe Josh could implement it directly assuming the license allows for it in something like LE? You only activate the modules you want to use, so it's pretty low overhead... 2 Quote --"There is no spoon" Link to comment Share on other sites More sharing options...
gamecreator Posted January 20, 2014 Share Posted January 20, 2014 Does SDL support non-Xbox controllers? I shared controller code before for LE2 but it was Windows only (http://www.leadwerks.com/werkspace/files/file/299-joystick-gamepad-example/). Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted January 20, 2014 Share Posted January 20, 2014 yes http://wiki.libsdl.org/APIByCategory#Input_Events also I played some games coded with SDL and dont use xbox controller Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
Michael_J Posted January 20, 2014 Share Posted January 20, 2014 Yeah, I've tested my SDL implementation with a Saitek X52 and a G-25 wheel and pedal set--works great. edit: what DudeAwesome said Quote --"There is no spoon" Link to comment Share on other sites More sharing options...
YouGroove Posted January 21, 2014 Author Share Posted January 21, 2014 Would be good to add support for regulare controllers aswell tho the ps3/ouya/xbox ones are more widespread and being able to use those aswell would be a huge plus for the game / engine +1 Lot of gamers like a lot simple controller like XBox 360, specially with all indie and arcade games. Simple but effective. Not all people will buy a SteamController (beware of Ouya effect). also I played some games coded with SDL and dont use xbox controller If someone could make a lib or something that could be used in Lua would be awesome. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Rick Posted January 21, 2014 Share Posted January 21, 2014 Did you forget how to quote on the forums YouGroove Quote Link to comment Share on other sites More sharing options...
Guppy Posted January 21, 2014 Share Posted January 21, 2014 Seems SDL have an agreeable license these days ( used to be lgpl ), but can you break away the input part of sdl from the rest of the framework? Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
DudeAwesome Posted January 21, 2014 Share Posted January 21, 2014 Seems SDL have an agreeable license these days ( used to be lgpl ), but can you break away the input part of sdl from the rest of the framework? the sourcecode is available so its possible but you have to do it by yourself to extract your needed classes Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
Guppy Posted January 21, 2014 Share Posted January 21, 2014 the sourcecode is available so its possible but you have to do it by yourself to extract your needed classes Since I was talking about the license change ( from lgpl to zlib ) it's entirely reasonable to think I am well aware that the project is opensource. Given this perhaps one could deduct that I was asking if the project was designed in such a way as to let you use pieces - in this case input specifically - independently of the rest of the framework. Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
MoustafaChamli Posted July 14, 2014 Share Posted July 14, 2014 Sorry to resurrect this thread, but I've been having trouble getting SDL to work with Leadwerks on Linux. It builds fine on Windows, but I've been getting the following error: ‘SDL_GameControllerAxis’ is not a class or namespace I set up Code::Blocks to use these: Compiler search directories: /usr/include/SDL2 Link libraries: /usr/lib/i386-linux-gnu/libSDL2.so Options: -lSDL2 -lSDL2main Am I missing anything? Could I be pointed in the right direction? I have installed the libsdl2-2.0-0 and libsdl2-dev (with the ":i386" option) packages. Thanks! Quote 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.