Mixing SDL & Carbon

Posts: 31
Joined: 2004.09
Post: #1
I've asked this before, but received no reply, so here goes another attempt Smile

Is it possible to mix the Carbon Event manager with SDL? In particular, I want to:

- include a proper application menu with menuitems,

- check for specific input events, either through the event manager, or through HID. For example, I would like to support scroll wheels.

thanks for any help.
Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post: #2
SDL runs its own event loop, so you can't interfere with that.

I'm sure I've seen SDL apps that handle the application menu properly. Perhaps if they're using SDLmain.nib?

SDL's joystick support should allow you to interact with scrollwheels on Mac OS X 10.2 and later.

If you wanted to get hardcore, you could hack SDL so that the NSEvent* (it uses Cocoa) is available. That doesn't seem like it should be too hard.
Quote this message in a reply
Posts: 233
Joined: 2003.05
Post: #3
If you check the latest updates to the SDL 1.2.6(?) code, you'll see that scroll wheel support has been recently added to the MacOS X version...

Of course, if it's a game targeted towards a GENERAL audience on the Mac, you should have a good alternative to using a scroll wheel. Wink

"Pay no attention to that man behind the curtain." - Wizard of Oz
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  problem mixing 3d with 2d render wolfra 0 2,853 Feb 24, 2010 02:14 AM
Last Post: wolfra
  Turning off mixing iPod music dsk00 0 3,572 Jun 4, 2009 10:25 PM
Last Post: dsk00
  Mixing obj-c and c++ DesertPenguin 2 4,866 Aug 29, 2006 07:47 AM
Last Post: TomorrowPlusX
  Mixing SDL with Cocoa Taxxodium 1 3,529 Nov 22, 2003 06:28 PM
Last Post: Mars_999
  OpenGL - mixing perspective & orthographic projections mars 5 10,239 Jul 2, 2003 06:34 PM
Last Post: Iceman