[SDL] keyboard events

Simon Roby simon.roby at gmail.com
Wed Sep 21 12:21:29 PDT 2005


On 9/21/05, Michael Whitman <mwhitman at gmail.com> wrote:
[...]
>        switch (event.type)
>        {
>        case SDL_KEYDOWN:
>            std::cout << "KEY PRESSED" << std::endl;
>
>        case SDL_KEYUP:
>            std::cout << "KEY RELEASED" << std::endl;
>        }

Your break; statements are missing... ;)

--
- SR


More information about the SDL mailing list