Mercurial > sdl-ios-xcode
annotate docs/html/sdlsetmodstate.html @ 548:6cd49f896c5a
Open ALSA devices in non-blocking mode (thanks Aleksey!)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 17 Nov 2002 20:02:26 +0000 |
parents | e5bc29de3f0a |
children | 355632dca928 |
rev | line source |
---|---|
0 | 1 <HTML |
2 ><HEAD | |
3 ><TITLE | |
4 >SDL_SetModState</TITLE | |
5 ><META | |
6 NAME="GENERATOR" | |
55
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.64 |
0 | 8 "><LINK |
9 REL="HOME" | |
10 TITLE="SDL Library Documentation" | |
11 HREF="index.html"><LINK | |
12 REL="UP" | |
13 TITLE="Event Functions." | |
14 HREF="eventfunctions.html"><LINK | |
15 REL="PREVIOUS" | |
16 TITLE="SDL_GetModState" | |
17 HREF="sdlgetmodstate.html"><LINK | |
18 REL="NEXT" | |
19 TITLE="SDL_GetKeyName" | |
20 HREF="sdlgetkeyname.html"></HEAD | |
21 ><BODY | |
22 CLASS="REFENTRY" | |
23 BGCOLOR="#FFF8DC" | |
24 TEXT="#000000" | |
25 LINK="#0000ee" | |
26 VLINK="#551a8b" | |
27 ALINK="#ff0000" | |
28 ><DIV | |
29 CLASS="NAVHEADER" | |
30 ><TABLE | |
31 WIDTH="100%" | |
32 BORDER="0" | |
33 CELLPADDING="0" | |
34 CELLSPACING="0" | |
35 ><TR | |
36 ><TH | |
37 COLSPAN="3" | |
38 ALIGN="center" | |
39 >SDL Library Documentation</TH | |
40 ></TR | |
41 ><TR | |
42 ><TD | |
43 WIDTH="10%" | |
44 ALIGN="left" | |
45 VALIGN="bottom" | |
46 ><A | |
47 HREF="sdlgetmodstate.html" | |
48 >Prev</A | |
49 ></TD | |
50 ><TD | |
51 WIDTH="80%" | |
52 ALIGN="center" | |
53 VALIGN="bottom" | |
54 ></TD | |
55 ><TD | |
56 WIDTH="10%" | |
57 ALIGN="right" | |
58 VALIGN="bottom" | |
59 ><A | |
60 HREF="sdlgetkeyname.html" | |
61 >Next</A | |
62 ></TD | |
63 ></TR | |
64 ></TABLE | |
65 ><HR | |
66 ALIGN="LEFT" | |
67 WIDTH="100%"></DIV | |
68 ><H1 | |
69 ><A | |
70 NAME="SDLSETMODSTATE" | |
71 >SDL_SetModState</A | |
72 ></H1 | |
73 ><DIV | |
74 CLASS="REFNAMEDIV" | |
75 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
76 NAME="AEN5364" |
0 | 77 ></A |
78 ><H2 | |
79 >Name</H2 | |
80 >SDL_SetModState -- Set the current key modifier state</DIV | |
81 ><DIV | |
82 CLASS="REFSYNOPSISDIV" | |
83 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
84 NAME="AEN5367" |
0 | 85 ></A |
86 ><H2 | |
87 >Synopsis</H2 | |
88 ><DIV | |
89 CLASS="FUNCSYNOPSIS" | |
90 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
91 NAME="AEN5368" |
0 | 92 ></A |
93 ><P | |
94 ></P | |
95 ><PRE | |
96 CLASS="FUNCSYNOPSISINFO" | |
97 >#include "SDL.h"</PRE | |
98 ><P | |
99 ><CODE | |
100 ><CODE | |
101 CLASS="FUNCDEF" | |
102 >void <B | |
103 CLASS="FSFUNC" | |
104 >SDL_SetModState</B | |
105 ></CODE | |
106 >(SDLMod modstate);</CODE | |
107 ></P | |
108 ><P | |
109 ></P | |
110 ></DIV | |
111 ></DIV | |
112 ><DIV | |
113 CLASS="REFSECT1" | |
114 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
115 NAME="AEN5374" |
0 | 116 ></A |
117 ><H2 | |
118 >Description</H2 | |
119 ><P | |
120 >The inverse of <A | |
121 HREF="sdlgetmodstate.html" | |
122 ><TT | |
123 CLASS="FUNCTION" | |
124 >SDL_GetModState</TT | |
125 ></A | |
126 >, <TT | |
127 CLASS="FUNCTION" | |
128 >SDL_SetModState</TT | |
129 > allows you to impose modifier key states on your application.</P | |
130 ><P | |
131 >Simply pass your desired modifier states into <TT | |
132 CLASS="PARAMETER" | |
133 ><I | |
134 >modstate</I | |
135 ></TT | |
136 >. This value my be a logical OR'd combination of the following:</P | |
137 ><PRE | |
138 CLASS="PROGRAMLISTING" | |
139 >typedef enum { | |
140 KMOD_NONE = 0x0000, | |
141 KMOD_LSHIFT= 0x0001, | |
142 KMOD_RSHIFT= 0x0002, | |
143 KMOD_LCTRL = 0x0040, | |
144 KMOD_RCTRL = 0x0080, | |
145 KMOD_LALT = 0x0100, | |
146 KMOD_RALT = 0x0200, | |
147 KMOD_LMETA = 0x0400, | |
148 KMOD_RMETA = 0x0800, | |
149 KMOD_NUM = 0x1000, | |
150 KMOD_CAPS = 0x2000, | |
151 KMOD_MODE = 0x4000, | |
152 } SDLMod;</PRE | |
153 ></DIV | |
154 ><DIV | |
155 CLASS="REFSECT1" | |
156 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
157 NAME="AEN5383" |
0 | 158 ></A |
159 ><H2 | |
160 >See Also</H2 | |
161 ><P | |
162 ><A | |
163 HREF="sdlgetmodstate.html" | |
164 ><TT | |
165 CLASS="FUNCTION" | |
166 >SDL_GetModState</TT | |
167 ></A | |
168 ></P | |
169 ></DIV | |
170 ><DIV | |
171 CLASS="NAVFOOTER" | |
172 ><HR | |
173 ALIGN="LEFT" | |
174 WIDTH="100%"><TABLE | |
175 WIDTH="100%" | |
176 BORDER="0" | |
177 CELLPADDING="0" | |
178 CELLSPACING="0" | |
179 ><TR | |
180 ><TD | |
181 WIDTH="33%" | |
182 ALIGN="left" | |
183 VALIGN="top" | |
184 ><A | |
185 HREF="sdlgetmodstate.html" | |
186 >Prev</A | |
187 ></TD | |
188 ><TD | |
189 WIDTH="34%" | |
190 ALIGN="center" | |
191 VALIGN="top" | |
192 ><A | |
193 HREF="index.html" | |
194 >Home</A | |
195 ></TD | |
196 ><TD | |
197 WIDTH="33%" | |
198 ALIGN="right" | |
199 VALIGN="top" | |
200 ><A | |
201 HREF="sdlgetkeyname.html" | |
202 >Next</A | |
203 ></TD | |
204 ></TR | |
205 ><TR | |
206 ><TD | |
207 WIDTH="33%" | |
208 ALIGN="left" | |
209 VALIGN="top" | |
210 >SDL_GetModState</TD | |
211 ><TD | |
212 WIDTH="34%" | |
213 ALIGN="center" | |
214 VALIGN="top" | |
215 ><A | |
216 HREF="eventfunctions.html" | |
217 >Up</A | |
218 ></TD | |
219 ><TD | |
220 WIDTH="33%" | |
221 ALIGN="right" | |
222 VALIGN="top" | |
223 >SDL_GetKeyName</TD | |
224 ></TR | |
225 ></TABLE | |
226 ></DIV | |
227 ></BODY | |
228 ></HTML | |
229 > |