MacOS, Keys and modifiers

Hello.

I’m using SDL 1.1.4 and some Keys seems to have some troubel to work
under MacOS.

A DSL small program which uses arrows keys when I press the Left arrow
on my keyboard,
I get a key number==28:
I mean:
myEvent.key.keysym.sym==28

instead of
myEvent.key.keysym.sym == SDLK_LEFT = =276

Is is something simple that I maybe don’t know ?
The program works perfectly on win32.

Altough, the keys:
-command (apple)
-shift
-shift lock
-option (alt)
-control (ctrl)
do not generate any event under MacOS.

May someone telle me which file(s) include those “event from key”, plz,
so I can understand and try to debug.

Thanks !

Luc-Olivier

Does anybody have fast code that will work with MacOS 8, 9, and Carbon?
It needs to handle all the key modifiers separately (i.e. left-shift,
right-shift, etc.)

Comments?

Thanks!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

I’m using SDL 1.1.4 and some Keys seems to have some troubel to work
under MacOS.

Sorry, I just had to compile with option:
“do allways use int for enumerations” (just in case anyone had the same
problem)

Altough, the keys:
-command (apple)
-shift
-shift lock
-option (alt)
-control (ctrl)
do not generate any event under MacOS.

That is still true.
Is anyone else trying to fix this ?

Luc-Olivier

At 2:34 PM -0700 2000.08.21, Sam Lantinga wrote:

Does anybody have fast code that will work with MacOS 8, 9, and Carbon?
It needs to handle all the key modifiers separately (i.e. left-shift,
right-shift, etc.)

Are you looking for just a low level GetKeys solution, or one 

that works internationally?–
::gLENN

-==-=+=-==-=+=-=*=–

Quietly you drown
In your sleep

-Front Line Assembly

At 2:34 PM -0700 2000.08.21, Sam Lantinga wrote:

Does anybody have fast code that will work with MacOS 8, 9, and Carbon?
It needs to handle all the key modifiers separately (i.e. left-shift,
right-shift, etc.)

Are you looking for just a low level GetKeys solution, or one
that works internationally?

A low level GetKeys solution is fine for raw key events, but if UNICODE
translation is enabled, we need to be able to translate the raw key state
into an international keypress value. See some of the other video drivers
for details.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Job’s done.

I have coded a KeyMap() based code that handle
shift, control, command, option and clapsLock.

On my computer, it works perfectly (MacOS 8.6)

To me it looks clean enough, but I have ony one computer,
and that’s the first time I modify SDL inside.
Anyone wants to check it?

I have tryed a WaitNextEvent() based code, but MacOS seems
to send a lot of differents things into the “modifiers” field.

Who want the code?
Status: R

Luc-Olivier