Game Development Community

Joystick Support

by Richard_H · in Torque Game Engine · 01/31/2007 (10:59 am) · 4 replies

I recently discovered that suport for joysticks on the Mac is non-existant.
I know too little to add it by myself, but I would like to help add it. Is there anyone willing to help me / needs help adding mac joystick suport?

#1
01/31/2007 (2:03 pm)
There's a great starting point in the Zap sourcecode.
Head on over to www.opentnl.org/
Download the sourcecode.
Then, take a look at this file: tnl/zap/osxInput.cpp .

If you or anyone else put together an implementation for TGE and send it my way, I'll review it, and probably roll it in to the next releases of TGE & TGB.

/Paul
#2
01/31/2007 (3:38 pm)
What about the GNU General Public License?
Does this mean if I incorporate the code from that file into my game, I will have distribute the TNL source with my game?
(I'm totally confused on how this license works)
#3
01/31/2007 (3:41 pm)
Technically, you would have to either purchase an indie license for TNL to integrate it. But if you create a resource and it gets integrated into TGE down the road, you will not have to pick up the license.

The GPL requires the entire project's source code to be released. You can't pick and choose parts of the project.
#4
01/31/2007 (4:09 pm)
Actually, creating a resource would constitute releasing your work, leading to you either having to release the source to torque under GPL [hence, incompatible], or pulling down the resource.

GG owns the copyright on that code, though. So a legal workaround would be for you to send your code to a member of GG [ie, paul] who would integrate it and then they [GG] would release it with the rest of torque. They're the only copyright holders, therefore they're the only ones who can change the license.

Short version; don't give your code to anyone but paul, and don't release your project until it's integrated into torque officially.

Of course, GG being the copyright holders, they'd also be vanishingly unlikely to prosecute, but being unlikely to be prosecuted has never been a good excuse to break copyright law, and goes against everything copyleft represents anyway.

Gary (-;