[SDL] Mac & mouse buttons

Darrell Walisser dwaliss1 at purdue.edu
Wed Jun 28 16:35:11 PDT 2000


>> The standard "right mouse button" for context menus is control+click on
>> a Mac, so maybe this is a better choice.
> 
> Problem is that ctrl also exists on PC/Unix keyboards, so ctrl+click
> might already be used for something else. This problem doesn't exist
> with the Apple Key, as it is specific to Apple.

I thought we were only implementing this in the Mac version of SDL? So does
it really matter if we use control?

>> As far as I can tell, DrawSprockets allows games to use more than one
>> mouse button, so perhaps SDL already supports this?

AFAIK DrawSprocket doesn't do event handling, such as detecting mouse
buttons. You are thinking of InputSprocket.
 
> But then you're dependent upon DrawSprockets, which is a bad thing
> IMHO - DrawSprockets *suck* *badly*!

You should reconsider. There is no better way to switch screen resolutions
on the current MacOS. That's all DrawSprocket is really intended for anyway.

> Oh, and even better would be to add real InputSprocket support, which
> would allow the user to map keys/button as they wish :-) (is there
> Isp support in SDL yet?)

There is ISp support for the joystick code. There is no ISp support for
keyboard and mouse in the joystick code. The keyboard and mouse events are
handled by the video subsystem.






More information about the SDL mailing list