[SDL] Mapping ascii to keyboard syms

Ryan C. Gordon icculus at clutteredmind.org
Wed Mar 27 20:05:01 PST 2002


> atoi("SDL_RETURN") == SDL_RETURN
>
> true for all SDLKeys?

atoi("random string") is always zero.

atoi("13") is 13 and atoi("15.2") is 15.

Strings and numbers are not interchangable like that, and SDLK_RETURN
means nothing at runtime; when compiling it gets replaced with a number
(13, I think).

SDL is a bad place to start learning C.

--ryan.






More information about the SDL mailing list