• Sam Lantinga's avatar
    Fixed bug #618 · 0cc0d8eb
    Sam Lantinga authored
       Description From  Tim Angus   2008-08-30 12:23:56   (-) [reply]
    
    As we all know SDL 1.2 doesn't handle dead keys well since one key press
    potentially equals two (or more) characters. For example, on many layouts,
    keying <backquote>,<space> results in <no character>,<backquote><space>. Since
    the unicode member of the SDL_keysym struct only has room for one character,
    only one can be returned.
    
    On Linux, the first character is returned. On Windows however, unless the exact
    number of characters generated by the keypress is 1, nothing is returned. The
    following patch addresses this inconsistency.
    
    Updated patch which includes a further fix to the handling of the numpad when
    numlock is on. This further fix is courtesy Amanieu d'Antras.
    
    --HG--
    branch : SDL-1.2
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403578
    0cc0d8eb
SDL_dibevents.c 17.2 KB