• Sam Lantinga's avatar
    Date: Sat, 15 Jan 2005 02:01:51 +0000 (UTC) · ee646e66
    Sam Lantinga authored
    From: jimrandomh
    Subject: [SDL] Re: Modifier keys pressed during initialization stick
    
    I wrote a simple test program which initializes SDL, prints the SDL
    version number, then prints any keydown and keyup events with their
    modifiers. (Source code below). Compilation was done using Visual
    Studio 6, release mode.
    
    My test sequence was:
    Start a command prompt. Type the name of the test program.
    shift down
    enter down (program starts)
    Wait for window to appear
    enter up
    shift up
    spacebar down
    spacebar up
    
    Under Windows 98, the output was correct:
    SDL 1.2.8
    left shift down
    shift-return down
    shift-return up
    left shift up
    space down
    space up
    
    Under Windows 2000 and under Windows XP, the output was:
    SDL 1.2.8
    shift-space down
    shift-space up
    
    Since shift was not held at the time space was pressed, this is
    incorrect. Similar results were observed with launching in different
    ways (including double-clicking in Windows Explorer), so it does not
    depend on the launching terminal.
    
    --HG--
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401285
    ee646e66
SDL_keyboard.c 15 KB