Mittens 2018 will be in Boston this September. There are three spaces left, so check out the thread for details!

Author Topic: [PLUGIN] Joystick / Game controller support! v1.2.0  (Read 21844 times)

Wyz

  • AGS Project Tracker Admins
  • anno 1986
    • I can help with making music
    •  
    • I can help with story design
    •  
    • I can help with translating
    •  
    • I can help with voice acting
    •  
    • I can help with web design
    •  

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
« Last Edit: 27 Oct 2017, 13:40 by Wyz »
Life is like an adventure without the pixel hunts.

Chrille

  • Mittens Earl
    • Chrille worked on a game that was nominated for an AGS Award!
      Chrille worked on a game that won an AGS Award!
Re: [PLUGIN] Joystick / Game controller support!
« Reply #1 on: 20 Aug 2010, 21:15 »
Awesome! I'm developing my game with a gamepad in mind.
GASPOP software
http://www.gaspop.com

Snake

  • @_@
    • I can help with making music
    •  
    • I can help with story design
    •  
    • Snake worked on a game that was nominated for an AGS Award!
      Snake worked on a game that won an AGS Award!
Re: [PLUGIN] Joystick / Game controller support!
« Reply #2 on: 20 Aug 2010, 21:37 »
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

  • Local Moderator
  • Rottwheelers
  • Pretty Badass
    • Dualnames worked on a game that was nominated for an AGS Award!
      Dualnames worked on a game that won an AGS Award!
Re: [PLUGIN] Joystick / Game controller support!
« Reply #3 on: 20 Aug 2010, 22:22 »
YAY MISTER WYZ!!! :D

*plugs his personal logitech*
No more military army stuff. I'm alive and back.

Re: [PLUGIN] Joystick / Game controller support!
« Reply #4 on: 21 Aug 2010, 00:00 »
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

  • Local Moderator
  • Rottwheelers
  • Pretty Badass
    • Dualnames worked on a game that was nominated for an AGS Award!
      Dualnames worked on a game that won an AGS Award!
Re: [PLUGIN] Joystick / Game controller support!
« Reply #5 on: 21 Aug 2010, 02:12 »
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*
No more military army stuff. I'm alive and back.

Shane 'ProgZmax' Stevens

  • Mittens Serf
  • AGS Project Tracker Admins
  • GARBAAAAAGE DAAAAAAY!
    • I can help with animation
    •  
    • I can help with characters
    •  
    • Lifetime Achievement Award Winner
    •  
    • I can help with making music
    •  
    • I can help with proof reading
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Shane 'ProgZmax' Stevens worked on a game that was nominated for an AGS Award!
      Shane 'ProgZmax' Stevens worked on a game that won an AGS Award!
Re: [PLUGIN] Joystick / Game controller support!
« Reply #6 on: 22 Aug 2010, 05:51 »
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

  • AGS Baker
  • Wild colonial boy.
    • Lifetime Achievement Award Winner
    •  
    • ThreeOhFour worked on a game that was nominated for an AGS Award!
      ThreeOhFour worked on a game that won an AGS Award!
Re: [PLUGIN] Joystick / Game controller support!
« Reply #7 on: 22 Aug 2010, 06:38 »
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

  • AGS Project Tracker Admins
  • anno 1986
    • I can help with making music
    •  
    • I can help with story design
    •  
    • I can help with translating
    •  
    • I can help with voice acting
    •  
    • I can help with web design
    •  
Re: [PLUGIN] Joystick / Game controller support!
« Reply #8 on: 22 Aug 2010, 10:44 »
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

  • Liscence to Misspell.
    • I can help with AGS tutoring
    •  
    • I can help with making music
    •  
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with scripting
    •  
Re: [PLUGIN] Joystick / Game controller support!
« Reply #9 on: 22 Aug 2010, 11:20 »
Who'd rather play a platformer on a gamepad...? 
"But with a ninja on your face, you live longer!"

Dualnames

  • Local Moderator
  • Rottwheelers
  • Pretty Badass
    • Dualnames worked on a game that was nominated for an AGS Award!
      Dualnames worked on a game that won an AGS Award!
Re: [PLUGIN] Joystick / Game controller support!
« Reply #10 on: 22 Aug 2010, 11:32 »
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
No more military army stuff. I'm alive and back.

LUniqueDan

  • Bladerunnerianism - A lifestyle, a vow, a religion
Re: [PLUGIN] Joystick / Game controller support!
« Reply #11 on: 22 Aug 2010, 16:31 »
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

  • AGS Project Tracker Admins
  • Long live King Cat!
    • I can help with making music
    •  
    • I can help with voice acting
    •  
    • Calin Leafshade worked on a game that was nominated for an AGS Award!
      Calin Leafshade worked on a game that won an AGS Award!
Re: [PLUGIN] Joystick / Game controller support!
« Reply #12 on: 23 Aug 2010, 00:32 »
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.

Re: [PLUGIN] Joystick / Game controller support!
« Reply #13 on: 23 Aug 2010, 04:49 »
Progz 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

  • Local Moderator
  • * KILL* * KILL * * KILL *
    • Lifetime Achievement Award Winner
    •  
Re: [PLUGIN] Joystick / Game controller support!
« Reply #14 on: 23 Aug 2010, 05:06 »
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 can help with making music
    •  
    • I can help with story design
    •  
    • Snake worked on a game that was nominated for an AGS Award!
      Snake worked on a game that won an AGS Award!
Re: [PLUGIN] Joystick / Game controller support!
« Reply #15 on: 04 Sep 2010, 03:26 »
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

  • AGS Project Tracker Admins
  • Tasting the banhammer. Strangely, tastes like ham.
Re: [PLUGIN] Joystick / Game controller support!
« Reply #16 on: 04 Sep 2010, 04:42 »
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".
User was banned for this post.

Wyz

  • AGS Project Tracker Admins
  • anno 1986
    • I can help with making music
    •  
    • I can help with story design
    •  
    • I can help with translating
    •  
    • I can help with voice acting
    •  
    • I can help with web design
    •  
Re: [PLUGIN] Joystick / Game controller support!
« Reply #17 on: 04 Sep 2010, 11:15 »
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. :)

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

  • AGS Project Tracker Admins
  • Tasting the banhammer. Strangely, tastes like ham.
Re: [PLUGIN] Joystick / Game controller support!
« Reply #18 on: 04 Sep 2010, 13:32 »
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. ;)

Everything you said here, JoyToKey supports. As for latency I experience none with JoyToKey. Just saying.. ::)
User was banned for this post.

Wyz

  • AGS Project Tracker Admins
  • anno 1986
    • I can help with making music
    •  
    • I can help with story design
    •  
    • I can help with translating
    •  
    • I can help with voice acting
    •  
    • I can help with web design
    •  
Re: [PLUGIN] Joystick / Game controller support!
« Reply #19 on: 04 Sep 2010, 13:38 »
In that case, what have I been wasting my time on ;)
Life is like an adventure without the pixel hunts.