Problems with SDLK_GREATER and SDLK_LESS

Are there any known problems with SDLK_GREATER and SDLK_LESS ??

I use the normal SDL_PollEvent while loop, shown many times on the SDL page.
This event loop tests for pressing F1-12 keys, l, s and some more.
Every key i used works well, but not SDLK_GREATER and SDLK_LESS.

PS: I don?t forgot any break statments :=)

CU

I use the normal SDL_PollEvent while loop, shown many times on the SDL page.
This event loop tests for pressing F1-12 keys, l, s and some more.
Every key i used works well, but not SDLK_GREATER and SDLK_LESS.

What are they coming up as? SDLK_COMMA and SDLK_PERIOD?

(On my keyboard, at least) the ‘<’ and ‘>’ chars are the shifted form of
those keys.

–ryan.

Are there any known problems with SDLK_GREATER and SDLK_LESS ??

I use the normal SDL_PollEvent while loop, shown many times on the SDL
page.
This event loop tests for pressing F1-12 keys, l, s and some more.
Every key i used works well, but not SDLK_GREATER and SDLK_LESS.

PS: I don?t forgot any break statments :=)

I don’t have a compiler handy at this time, so I can’t test this for you,
but
maybe you could try testing for SDLK_COMMA and SDLK_PERIOD with KMOD_SHIFT
instead? Those should be identical to SDLK_GREATER and SKLK_LESS on any
keyboard I know. (But I must confess I don’t know that many. :wink:

Dirk Gerrits

On my keyboard (norwegian), ‘<’ and ‘>’ are to the left of the ‘z’ key at the
bottom left of the keyboard (’<’ without shift, ‘>’ with) … Shifted ‘,’ and
’.’ are ‘;’ and ‘:’, respectively. Point being, not all keyboards have those
at the same place.On Tuesday 5. March 2002 00:16, Ryan C. Gordon wrote:

I use the normal SDL_PollEvent while loop, shown many times on the SDL
page. This event loop tests for pressing F1-12 keys, l, s and some more.
Every key i used works well, but not SDLK_GREATER and SDLK_LESS.

What are they coming up as? SDLK_COMMA and SDLK_PERIOD?

(On my keyboard, at least) the ‘<’ and ‘>’ chars are the shifted form of
those keys.


Trick


“There is no magic” - Nakor, magic user