Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411126 Posts in 69302 Topics- by 58376 Members - Latest Member: TitanicEnterprises

March 13, 2024, 01:46:07 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)A simple joystick DLL for Game Maker
Pages: [1]
Print
Author Topic: A simple joystick DLL for Game Maker  (Read 6906 times)
Evan Balster
Level 10
*****


I live in this head.


View Profile WWW
« on: January 14, 2011, 04:30:57 PM »

I don't really know what to do with this thing, but I want to share it.

I made a tiny little SDL-dependent joystick DLL for Game Maker as a favor for Beau Blyth.  I was apalled that all these years later no one had made something for Game Maker that supported more than two gamepads.

I fixed up the library last night and noticed that since last year when I wrote it one such library has arisen; however, it's got usability issues.

Anyway.  I don't know if there's a place on these forums for tools like this, which is more or less why I'm posting.  Failing that, it's here as its own thread.



joydll.dll and the associated GML packs override Game Maker's default joystick functions and provide new ones which have shorter names.  There are also functions for detecting button presses and releases, and detecting new or disconnected devices while the game is running.  The DLL needs to be initialized and updated once per frame to work properly.  It's covered under a modified Zlib license that allows free use, modification and distribution for commercial and noncommercial purposes.  Also, source.

Ironically, it doesn't solve the lag bug that it was meant to fix, but it's still an improvement on any other system I'm aware of for GM.

Anyway, here it is: http://evanbalster.com/goodies/joydll-1.1.zip

I did make a topic at the GMC, but I am aware a lot of Game Maker developers avoid that place like the plague.
Logged

Creativity births expression.  Curiosity births exploration.
Our work is as soil to these seeds; our art is what grows from them...


Wreath, SoundSelf, Infinite Blank, Cave Story+, <plaid/audio>
jwaap
Level 9
****


View Profile WWW
« Reply #1 on: April 10, 2011, 04:42:03 AM »

Super nice, but why start at 0? Takes new shit to get used to and doesn't make this very suitable for applying to already existing projects.

BUT AWESOME THANKS
Logged

Evan Balster
Level 10
*****


I live in this head.


View Profile WWW
« Reply #2 on: April 11, 2011, 05:19:28 PM »

Only the joy_ functions start at 0.  If you use the "transparent" (joystick_) functions, it'll work with existing code (starting at 1) except with more devices.
Logged

Creativity births expression.  Curiosity births exploration.
Our work is as soil to these seeds; our art is what grows from them...


Wreath, SoundSelf, Infinite Blank, Cave Story+, <plaid/audio>
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic