Mercurial > sdl-ios-xcode
annotate docs/html/guidecredits.html @ 2268:4baee598306d
Date: Thu, 05 Jul 2007 14:02:33 -0700
From: Sam Lantinga
Subject: SDL 1.3 keyboard plan
After lots of discussion with Christian, this is what we came up with:
> So, to sum up...
> SDLK_* become the physical keys, starting at > (1<<21)
> We create a macro SDLK_INDEX(X)
> We have two functions SDL_GetLayoutKey(SDLKey) and SDL_GetKeyName()
> SDL_GetLayoutKey maps to UCS4 for printable characters, and SDLK* for
non-printable characters
> and does so based on the OS's current keyboard layout
> SDL_GetKeyName() handles both SDLK_* and UCS4, converting UCS4 to UTF-8 and
converting SDLK_* into our names, which are UTF-8 for printable characters.
> WASD folks use SDLK_*, and 'I' folks use SDL_GetLayoutKey(SDLK_*)
Here is the patch he came up with, and his e-mail about it:
Date: Fri, 17 Aug 2007 19:50:28 +0200
From: Christian Walther
Subject: Re: SDL 1.3 keyboard plan
> Sounds great, go ahead and send me a patch.
Here goes! Thanks for having a look. Don't hesitate to comment if
anything does not conform to your ideas.
One caveat: Committing this now may break compilability of some video
drivers - specifically, if they use any of the SDLK_* codes that were
obsoleted and moved into SDL_compat.h. I only tried Cocoa (which did
break, but is already fixed) and X11 (which didn't, but then its key
handling is #iffed out). If that's a problem, it may need to go into
a branch.
-Christian
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 19 Aug 2007 14:52:52 +0000 |
parents | 355632dca928 |
children |
rev | line source |
---|---|
0 | 1 <HTML |
2 ><HEAD | |
3 ><TITLE | |
4 >Credits</TITLE | |
5 ><META | |
6 NAME="GENERATOR" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ |
0 | 8 "><LINK |
9 REL="HOME" | |
10 TITLE="SDL Library Documentation" | |
11 HREF="index.html"><LINK | |
12 REL="UP" | |
13 TITLE="Preface" | |
14 HREF="guidepreface.html"><LINK | |
15 REL="PREVIOUS" | |
16 TITLE="About SDLdoc" | |
17 HREF="guideaboutsdldoc.html"><LINK | |
18 REL="NEXT" | |
19 TITLE="The Basics" | |
20 HREF="guidethebasics.html"></HEAD | |
21 ><BODY | |
22 CLASS="SECT1" | |
23 BGCOLOR="#FFF8DC" | |
24 TEXT="#000000" | |
25 LINK="#0000ee" | |
26 VLINK="#551a8b" | |
27 ALINK="#ff0000" | |
28 ><DIV | |
29 CLASS="NAVHEADER" | |
30 ><TABLE | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
31 SUMMARY="Header navigation table" |
0 | 32 WIDTH="100%" |
33 BORDER="0" | |
34 CELLPADDING="0" | |
35 CELLSPACING="0" | |
36 ><TR | |
37 ><TH | |
38 COLSPAN="3" | |
39 ALIGN="center" | |
40 >SDL Library Documentation</TH | |
41 ></TR | |
42 ><TR | |
43 ><TD | |
44 WIDTH="10%" | |
45 ALIGN="left" | |
46 VALIGN="bottom" | |
47 ><A | |
48 HREF="guideaboutsdldoc.html" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
49 ACCESSKEY="P" |
0 | 50 >Prev</A |
51 ></TD | |
52 ><TD | |
53 WIDTH="80%" | |
54 ALIGN="center" | |
55 VALIGN="bottom" | |
56 >Preface</TD | |
57 ><TD | |
58 WIDTH="10%" | |
59 ALIGN="right" | |
60 VALIGN="bottom" | |
61 ><A | |
62 HREF="guidethebasics.html" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
63 ACCESSKEY="N" |
0 | 64 >Next</A |
65 ></TD | |
66 ></TR | |
67 ></TABLE | |
68 ><HR | |
69 ALIGN="LEFT" | |
70 WIDTH="100%"></DIV | |
71 ><DIV | |
72 CLASS="SECT1" | |
73 ><H1 | |
74 CLASS="SECT1" | |
75 ><A | |
76 NAME="GUIDECREDITS" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
77 ></A |
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
78 >Credits</H1 |
0 | 79 ><P |
80 ><P | |
81 ></P | |
82 ><TABLE | |
83 BORDER="0" | |
84 ><TBODY | |
85 ><TR | |
86 ><TD | |
55
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
87 >Sam Lantinga, slouken@libsdl.org</TD |
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
88 ></TR |
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
89 ><TR |
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
90 ><TD |
0 | 91 >Martin Donlon, akawaka@skynet.ie</TD |
92 ></TR | |
93 ><TR | |
94 ><TD | |
55
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
95 >Mattias Engdegård</TD |
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
96 ></TR |
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
97 ><TR |
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
98 ><TD |
0 | 99 >Julian Peterson</TD |
100 ></TR | |
101 ><TR | |
102 ><TD | |
103 >Ken Jordan</TD | |
104 ></TR | |
105 ><TR | |
106 ><TD | |
107 >Maxim Sobolev</TD | |
108 ></TR | |
109 ><TR | |
110 ><TD | |
111 >Wesley Poole</TD | |
112 ></TR | |
113 ><TR | |
114 ><TD | |
115 >Michael Vance</TD | |
116 ></TR | |
117 ><TR | |
118 ><TD | |
119 >Andreas Umbach</TD | |
120 ></TR | |
121 ><TR | |
122 ><TD | |
123 >Andreas Hofmeister</TD | |
124 ></TR | |
125 ></TBODY | |
126 ></TABLE | |
127 ><P | |
128 ></P | |
129 ></P | |
130 ></DIV | |
131 ><DIV | |
132 CLASS="NAVFOOTER" | |
133 ><HR | |
134 ALIGN="LEFT" | |
135 WIDTH="100%"><TABLE | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
136 SUMMARY="Footer navigation table" |
0 | 137 WIDTH="100%" |
138 BORDER="0" | |
139 CELLPADDING="0" | |
140 CELLSPACING="0" | |
141 ><TR | |
142 ><TD | |
143 WIDTH="33%" | |
144 ALIGN="left" | |
145 VALIGN="top" | |
146 ><A | |
147 HREF="guideaboutsdldoc.html" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
148 ACCESSKEY="P" |
0 | 149 >Prev</A |
150 ></TD | |
151 ><TD | |
152 WIDTH="34%" | |
153 ALIGN="center" | |
154 VALIGN="top" | |
155 ><A | |
156 HREF="index.html" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
157 ACCESSKEY="H" |
0 | 158 >Home</A |
159 ></TD | |
160 ><TD | |
161 WIDTH="33%" | |
162 ALIGN="right" | |
163 VALIGN="top" | |
164 ><A | |
165 HREF="guidethebasics.html" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
166 ACCESSKEY="N" |
0 | 167 >Next</A |
168 ></TD | |
169 ></TR | |
170 ><TR | |
171 ><TD | |
172 WIDTH="33%" | |
173 ALIGN="left" | |
174 VALIGN="top" | |
175 >About SDLdoc</TD | |
176 ><TD | |
177 WIDTH="34%" | |
178 ALIGN="center" | |
179 VALIGN="top" | |
180 ><A | |
181 HREF="guidepreface.html" | |
803
355632dca928
Updated SDL HTML documentation
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
182 ACCESSKEY="U" |
0 | 183 >Up</A |
184 ></TD | |
185 ><TD | |
186 WIDTH="33%" | |
187 ALIGN="right" | |
188 VALIGN="top" | |
189 >The Basics</TD | |
190 ></TR | |
191 ></TABLE | |
192 ></DIV | |
193 ></BODY | |
194 ></HTML | |
195 > |