1SDL_EnableUNICODE(3)           SDL API Reference          SDL_EnableUNICODE(3)
2
3
4

NAME

6       SDL_EnableUNICODE - Enable UNICODE translation
7

SYNOPSIS

9       #include "SDL.h"
10
11       int SDL_EnableUNICODE(int enable);
12

DESCRIPTION

14       Enables/Disables Unicode keyboard translation.
15
16       To  obtain  the  character  codes  corresponding  to  received keyboard
17       events, Unicode translation must first be turned on  using  this  func‐
18       tion.  The translation incurs a slight overhead for each keyboard event
19       and is therefore disabled by default. For  each  subsequently  received
20       key  down  event,  the  unicode member of the SDL_keysym structure will
21       then contain the corresponding character code, or zero for keysyms that
22       do not correspond to any character code.
23
24       A value of 1 for enable enables Unicode translation; 0 disables it, and
25       -1 leaves it unchanged (useful for  querying  the  current  translation
26       mode).
27
28       Note that only key press events will be translated, not release events.
29

RETURN VALUE

31       Returns the previous translation mode (0 or 1).
32

SEE ALSO

34       SDL_keysym
35
36
37
38SDL                         Tue 11 Sep 2001, 22:59        SDL_EnableUNICODE(3)
Impressum