4 >SDL_EnableUNICODE</TITLE
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
10 TITLE="SDL Library Documentation"
11 HREF="index.html"><LINK
13 TITLE="Event Functions."
14 HREF="eventfunctions.html"><LINK
16 TITLE="SDL_GetKeyName"
17 HREF="sdlgetkeyname.html"><LINK
19 TITLE="SDL_EnableKeyRepeat"
20 HREF="sdlenablekeyrepeat.html"></HEAD
31 SUMMARY="Header navigation table"
40 >SDL Library Documentation</TH
48 HREF="sdlgetkeyname.html"
62 HREF="sdlenablekeyrepeat.html"
73 NAME="SDLENABLEUNICODE"
75 >SDL_EnableUNICODE</H1
83 >SDL_EnableUNICODE -- Enable UNICODE translation</DIV
85 CLASS="REFSYNOPSISDIV"
99 CLASS="FUNCSYNOPSISINFO"
100 >#include "SDL.h"</PRE
107 >SDL_EnableUNICODE</B
123 >Enables/Disables Unicode keyboard translation.</P
125 >To obtain the character codes corresponding to received keyboard events,
126 Unicode translation must first be turned on using this function. The
127 translation incurs a slight overhead for each keyboard event and is therefore
128 disabled by default. For each subsequently received key down event, the
136 HREF="sdlkeysym.html"
142 will then contain the corresponding character code, or zero for keysyms that do
143 not correspond to any character code.</P
145 >A value of 1 for <TT
150 > enables Unicode translation;
151 0 disables it, and -1 leaves it unchanged (useful for querying the current
152 translation mode).</P
154 >Note that only key press events will be translated, not release events.</P
164 >Returns the previous translation mode (<SPAN
181 HREF="sdlkeysym.html"
193 SUMMARY="Footer navigation table"
204 HREF="sdlgetkeyname.html"
222 HREF="sdlenablekeyrepeat.html"
238 HREF="eventfunctions.html"
246 >SDL_EnableKeyRepeat</TD