Previous Blog Next Blog
Prev/Next Blog
by date

Mac Development (TGE)

Mac Development (TGE)
Name:David Murphy 
Date Posted:Oct 16, 2006
Rating:2.3 out of 5
Public:YES
Comments:YES
RSS Feed:GarageGames Blog feedor Subscribe with .
Profile Page:View profile page for David Murphy

Blog post
hi folks,

One of my students is developing a Torque game on the Mac. We soon found out that joystick support for the Mac seems non-existent.

While looking at the problem in greater detail, I came across this in macCarbInput (line 93):

ConsoleFunction( isJoystickDetected, bool, 1, 1, "Always false on the MAC." )
{
/*
argc; argv;
return( DInputDevice::joystickDetected() );
*/
return(false);
}

Have GarageGame actually written joystick support for the Mac literally out!
This is relatively straight forward to fix, so I'm curious as to why it hasn't been done yet?

Also, what is the roadmap for moving the Mac version of TGE away from Carbon and onto Cocoa??

rgds Dave

Submit ResourceSubmit your own resources!

Stefan Lundmark   (Oct 16, 2006 at 18:23 GMT)   Resource Rating: 1
And what exactly is this blog about? Try the forums if you want to ask questions.

Ajari Wilson   (Oct 16, 2006 at 19:39 GMT)
---GG edit---
Edited on Oct 16, 2006 21:01 GMT

James Urquhart   (Oct 16, 2006 at 19:48 GMT)   Resource Rating: 3
David,

Implementing joystick support on the mac should be relatively simple. I seem to recall seeing quite a few articles on ADC mentioning implementing joystick / gamepad support into games, so you should probably start there.

Sadly, i've not seen many mac games support joysticks/gamepad's :(

Kenneth Holst   (Oct 16, 2006 at 19:51 GMT)
@David, I would ask on the mac forums here and see if Paul S. can shed some light on that.

Ajari Wilson   (Oct 17, 2006 at 04:51 GMT)
lol I've just been officially "hushed" by GG. I didn't think what I said was bad at all. It was the truth and I was polite enough about it. Looking back I can see how it could have possibly started some stuff in here though. Good call I guess.

David Murphy   (Oct 17, 2006 at 14:11 GMT)   Resource Rating: 5
While my original intention was to query the support for joystick on the Mac, it seems to me that the Mac-side could do with a blog to discuss ways of further enhancing TGE (and other GG apps) on the Mac platform. So I would welcome any input, whether it be on the specifics of the joystick or more general Mac development.

BTW, the real underlying problem with the Mac 'port' is that it is inherently Carbon based. GG should consider, or inviting others, to assist with a Cocoa version.

Any thoughts??

rgds Dave

Tim Newell   (Oct 17, 2006 at 17:26 GMT)
I think the main reason they chose carbon over cocoa is because Carbon is C based while Cocoa is Objective-C based. While you can use Cocoa from C++ from what Ive read you need a Objective-C++ layer in there.

David Murphy   (Oct 19, 2006 at 12:39 GMT)   Resource Rating: 5
hi Tim,

this shouldn't be a problem - many developers integrate C/C++ in Object-C and/or Objective-C++. However, before I proceed with this thread I am checking out the latest version in CVS so that I know what changes are being made.

rgds Dave

Tim Newell   (Oct 20, 2006 at 01:19 GMT)
A lot of mac changes have been made in TGE 1.5 which is not available yet. So you may want to wait for its release.

David Murphy   (Nov 03, 2006 at 12:36 GMT)   Resource Rating: 5
Hi Tim,

I have downloaded 1.5 and am currently testing it. Apart from a number of comments being cleaned up and some changes, there has been no progress with the Joystick input.

Is there a diff file somehwere showing the differences between 1.4.2 and 1.5?

rgds Dave

You must be a member and be logged in to either append comments or rate this resource.