Little additions

You should
#define SDLK_ENTER SDLK_RETURN
#define SDLK_KP_RETURN SDLK_KP_ENTER

It’s really counter-intuitive that one is called “return” and another
one is called “enter”, as they’re the same key.–
[] Guido Imperiale
[] CRV?ADER//KY
[] CVI.SCIENTIA.IMPERIVM

crusaderky at libero dot it
http://www.crusaderky.altervista.org

“Nam et ipsa scientia potestas est” (Knowledge is Power)
– Sir Francis Bacon (1561-1626)
Meditationes Sacrae, de Haeresibus

“The Net treats censorship as damage and routes around it.”
– John Gilmore

“I worry about my child and the Internet all the time, even though she’s
too young to have logged on yet. Here’s what I worry about. I worry that
10 or 15 years from now, she will come to me and say: ‘Daddy, where
were you when they took freedom of the press away from the Internet?’”
– Mike Godwin, Electronic Frontier Foundation

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031026/1032d0f3/attachment.pgp

No, the return on the main keyboard and the enter on the keypad are
definately different keys, and if you fall into this trap too often
then just define them youself in your own header file. No need for
them to be in SDL in my opinion. The key names as they stand are well
documented.

— CRV?ADER//KY wrote: > You should> #define SDLK_ENTER SDLK_RETURN

#define SDLK_KP_RETURN SDLK_KP_ENTER

It’s really counter-intuitive that one is called “return” and another

one is called “enter”, as they’re the same key.


[] Guido Imperiale
[] CRV?ADER//KY
[] CVI.SCIENTIA.IMPERIVM

crusaderky at libero dot it
http://www.crusaderky.altervista.org

“Nam et ipsa scientia potestas est” (Knowledge is Power)
– Sir Francis Bacon (1561-1626)
Meditationes Sacrae, de Haeresibus

“The Net treats censorship as damage and routes around it.”
– John Gilmore

“I worry about my child and the Internet all the time, even though
she’s
too young to have logged on yet. Here’s what I worry about. I worry
that
10 or 15 years from now, she will come to me and say: ‘Daddy, where
were you when they took freedom of the press away from the
Internet?’”
– Mike Godwin, Electronic Frontier Foundation

ATTACHMENT part 2 application/pgp-signature

=====

Paul Smith
Postgraduate Student
Department of Mathematics
School of Engineering, Computer Science,
and Mathematics
University of Exeter


Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

Paul Smith wrote:

No, the return on the main keyboard and the enter on the keypad are
definately different keys, and if you fall into this trap too often
then just define them youself in your own header file. No need for
them to be in SDL in my opinion. The key names as they stand are well
documented.

Interesting thing is that my keypad “return” key has “Enter” written on
it… :wink:

I think it’s a good idea actually,

SDLK_ENTER, SDLK_RETURN : enter/return on the main keyboard
SDLK_KP_ENTER, SDLK_KP_RETURN : enter/return on the numeric keypad

this doesn’t mean that both keys are handled like the same one.

ciao, Ivan> ----- Original Message -----

From: googoodolls_uk@yahoo.com (Paul Smith)

No, the return on the main keyboard and the enter on the keypad are
definately different keys, and if you fall into this trap too often
then just define them youself in your own header file. No need for
them to be in SDL in my opinion. The key names as they stand are well
documented.

Fine, I don’t suppose it makes any difference either way. I just
didn’t think it fit in with the idea of SDL, i.e. provide as little as
possible and make it work well. In any case, it’s 2 lines of code added
to either SDL or your own project, and would take less time to type in
than we’ve already wasted talking about it :slight_smile:

— Ivan Montes wrote: > I think it’s a good idea
actually,>

SDLK_ENTER, SDLK_RETURN : enter/return on the main keyboard
SDLK_KP_ENTER, SDLK_KP_RETURN : enter/return on the numeric keypad

this doesn’t mean that both keys are handled like the same one.

ciao, Ivan

----- Original Message -----
From: “Paul Smith” <@Paul_Smith>

No, the return on the main keyboard and the enter on the keypad are
definately different keys, and if you fall into this trap too often
then just define them youself in your own header file. No need for
them to be in SDL in my opinion. The key names as they stand are
well
documented.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

=====

Paul Smith
Postgraduate Student
Department of Mathematics
School of Engineering, Computer Science,
and Mathematics
University of Exeter


Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

Sebastian Beschke wrote:

Paul Smith wrote:

No, the return on the main keyboard and the enter on the keypad are
definately different keys, and if you fall into this trap too often
then just define them youself in your own header file. No need for
them to be in SDL in my opinion. The key names as they stand are well
documented.

Interesting thing is that my keypad “return” key has “Enter” written on
it… :wink:

Just what Paul wrote. Keypad = Enter, Keyboard = Return.–
Milan Babuskov
http://njam.sourceforge.net