[SDL] Mac & mouse buttons
Max Horn
max at quendi.de
Wed Jun 28 04:46:23 PDT 2000
Hi,
I'm not sure if this is the right place to post this, if not please excuse me.
I have just ported "Exult" (an Ultima 7 remake) to the Mac. Now, my
problem is the lack of a second mouse button on the mac. A common way
to solve this problem in games is to use "Apple Key + Click" to
replace the right mouse button.
To acomplish this, I modified the two calls to SDL_PrivateMouseButton
in file "SDL_macevents.c" to look like this:
...
posted = SDL_PrivateMouseButton(
SDL_PRESSED,
(event.modifiers & cmdKey) ? 3 : 1,
event.where.h,
event.where.v);
...
Works like a charm!
Maybe it is worthwhile to integrate this into main SDL...
Bye,
Max
--
-----------------------------------------------------------
Max "The Black Fingolfin" Horn
<mailto:max at quendi.de>
<http://www.quendi.de> - please use my guestbook!
More information about the SDL
mailing list