[PLUGIN] Joystick / Game controller support! v1.2.0

Started by Wyz, Fri 20/08/2010 19:43:43

Previous topic - Next topic

Wyz



AGS Joystick


Want to use a joystick or gamepad in your game? With this plugin you can, check it out!

or

20 October 2010
v1.2.0
Tutorial v2

20 September 2010
v1.1.0
Tutorial v1

20 Augustus 2010
v1.0.0

Have fun!

- cheers
Life is like an adventure without the pixel hunts.

Chrille

Awesome! I'm developing my game with a gamepad in mind.
GASPOP software
http://www.gaspop.com

Snake

AWESOME!
I will be trying this as soon as possible. Something like this has been on my wish list for years!
Grim: "You're making me want to quit smoking... stop it!;)"
miguel: "I second Grim, stop this nonsense! I love my cigarettes!"

Dualnames

YAY MISTER WYZ!!! :D

*plugs his personal logitech*
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

GarageGothic

Aw shit, now I have to go buy that Xbox 360 Controller that I've been trying to avoid ;). Excellent work! It's crazy to see all the useful plugins being released these weeks - a lot of them doing exactly the things that I wanted to add to my own plugin - wonderful to have all those new options.

Dualnames

Quote from: GarageGothic on Sat 21/08/2010 00:00:47
Aw shit, now I have to go buy that Xbox 360 Controller that I've been trying to avoid ;). Excellent work! It's crazy to see all the useful plugins being released these weeks - a lot of them doing exactly the things that I wanted to add to my own plugin - wonderful to have all those new options.

Some people just want that "innovation" award or "best plugin" a lot! :D

*please don't be insulted, I'm only fooling around*
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Shane 'ProgZmax' Stevens

Brilliant.  I've been wanting to write a native plugin (without the need for a separate dll) for ages but until that's possible this should do the trick.  I should've just done what you did but hey, nice work!

ThreeOhFour

I've wanted to build a gamepad/keyboard game for a while but haven't and now if I do I could be able to use gamepads with it which would be rad.

What I'm saying is: thanks.

Wyz

Thanks for all the comments! I hope the plugin works out for you :)

Well the idea started when Abstauber released his platform engine and I was playing it and thought by myself: That would be awesome with a gamepad. But then I still had tons of other stuff to do. ;)

@Duals: I actually forgot all about them; now you mentioned... ;)
Life is like an adventure without the pixel hunts.

Wonkyth

Who'd rather play a platformer on a gamepad...? 
"But with a ninja on your face, you live longer!"

Dualnames

Quote from: wonkyth on Sun 22/08/2010 11:20:09
Who'd rather play a platformer on a gamepad...? 

I would.

Plan to take over the world using AGS:
-3D
-Gamepad
-TCP/IP
-Alpha Blending
-Bilinear resizing
-PHP
-Porn Theme for AGS Editor
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

LUniqueDan

Yess! Yess! I waas desesperately looking for this since november 08.
That's going to be cool...

Thankx Wyz
"I've... seen things you people wouldn't believe. Destroyed pigeon nests on the roof of the toolshed. I watched dead mice glitter in the dark, near the rain gutter trap.
All those moments... will be lost... in time, like tears... in... rain."

Calin Leafshade

Quote from: ProgZmax on Sun 22/08/2010 05:51:21
Brilliant.  I've been wanting to write a native plugin (without the need for a separate dll) for ages but until that's possible this should do the trick.  I should've just done what you did but hey, nice work!

Progz what do you mean by native plugin?

Does AGS support embedding plugins or something? Sorry i'm confused.

GarageGothic

Quote from: Calin Leafshade on Mon 23/08/2010 00:32:39Progz what do you mean by native plugin? Does AGS support embedding plugins or something? Sorry i'm confused.

Glad it wasn't just me. I wanted to ask the very same thing but figured, since I'm still a C++ n00b maybe it was a stupid question. ProgZ said "until that's possible" though, so I guess he means AGS currently does not have the required features for what he had in mind - whether it's plugin embedding or something else.

Gilbert

Confused me as such too, but I think his "until it's possible" part meant that "it's not possible with the current version of AGS yet, but I'll do such a thing when this can be done in a future version". However, if this can be done in a future version, that means AGS ould support joysticks natively already, unless that said dll-less plugin (which should be called a script module instead) does management jobs like whether a button is held for a while or whether a QCF motion is detected.

Snake

I know I'll be burned at the stake for this, but, Wyz, have you made a tutorial/example project yet? I really want to use this but, being the simpleton that I am, it confuses me. Even someone making a video tutorial would help.

Also, I noticed this hasn't been moved to the modules/plugins section yet... :-*
Grim: "You're making me want to quit smoking... stop it!;)"
miguel: "I second Grim, stop this nonsense! I love my cigarettes!"

monkey0506

Personally I'd just use JoyToKey. :P Good idea for a plugin though. Without actually looking at it, I'm guessing it would probably allow in-game configuration which would look nicer and more streamlined than saying "use [insert 3rd party controller mapping software here] for controller support".

Wyz

Quote from: Snake on Sat 04/09/2010 03:26:44
I know I'll be burned at the stake for this, but, Wyz, have you made a tutorial/example project yet?

Yes, it is most definitely on the list. I've got a few project that I need to finish first though, sorry to keep you waiting. :)

Quote from: monkey_05_06 on Sat 04/09/2010 04:42:20
Personally I'd just use JoyToKey. :P Good idea for a plugin though. Without actually looking at it, I'm guessing it would probably allow in-game configuration which would look nicer and more streamlined than saying "use [insert 3rd party controller mapping software here] for controller support".

Yes there are many advantages over something like JoyToKey. The plugin suffers less latency and is a bit more streamlined but the biggest advantage I guess is it supports analogue sticks and throttles. It gives a bigger degree of control then just left, right, down, down-right etc. It also supports up to 16 game devices, although 2 will usually do. ;)
Life is like an adventure without the pixel hunts.

monkey0506

Quote from: Wyz on Sat 04/09/2010 11:15:46the biggest advantage I guess is it supports analogue sticks and throttles. It gives a bigger degree of control then just left, right, down, down-right etc. It also supports up to 16 game devices, although 2 will usually do. ;)

Everything you said here, JoyToKey supports. As for latency I experience none with JoyToKey. Just saying.. ::)

Wyz

In that case, what have I been wasting my time on ;)
Life is like an adventure without the pixel hunts.

SMF spam blocked by CleanTalk