Tao.Sdl SDK Documentation

Sdl.SDL_keysym.unicode Field

Translated character.

[Visual Basic]
Public unicode As Short
[C#]
public short unicode;

Remarks

The 'unicode' translated character is only available when character translation is enabled by the SDL_EnableUNICODE() API. If non-zero, this is a UNICODE character corresponding to the keypress. If the high 9 bits of the character are 0, then this maps to the equivalent ASCII character:

                char ch;
                if ( (keysym.unicode and 0xFF80) == 0 ) {
                    ch = keysym.unicode and 0x7F;
                } else {
                    An international character..
                }

See Also

Sdl.SDL_keysym Class | Tao.Sdl Namespace