docs/html/sdlsetmodstate.html
changeset 3352 6dc250ebdd80
parent 3351 8e0182c236d8
child 3353 6b14223dd5c7
     1.1 --- a/docs/html/sdlsetmodstate.html	Wed Oct 07 06:11:53 2009 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,237 +0,0 @@
     1.4 -<HTML
     1.5 -><HEAD
     1.6 -><TITLE
     1.7 ->SDL_SetModState</TITLE
     1.8 -><META
     1.9 -NAME="GENERATOR"
    1.10 -CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
    1.11 -"><LINK
    1.12 -REL="HOME"
    1.13 -TITLE="SDL Library Documentation"
    1.14 -HREF="index.html"><LINK
    1.15 -REL="UP"
    1.16 -TITLE="Event Functions."
    1.17 -HREF="eventfunctions.html"><LINK
    1.18 -REL="PREVIOUS"
    1.19 -TITLE="SDL_GetModState"
    1.20 -HREF="sdlgetmodstate.html"><LINK
    1.21 -REL="NEXT"
    1.22 -TITLE="SDL_GetKeyName"
    1.23 -HREF="sdlgetkeyname.html"></HEAD
    1.24 -><BODY
    1.25 -CLASS="REFENTRY"
    1.26 -BGCOLOR="#FFF8DC"
    1.27 -TEXT="#000000"
    1.28 -LINK="#0000ee"
    1.29 -VLINK="#551a8b"
    1.30 -ALINK="#ff0000"
    1.31 -><DIV
    1.32 -CLASS="NAVHEADER"
    1.33 -><TABLE
    1.34 -SUMMARY="Header navigation table"
    1.35 -WIDTH="100%"
    1.36 -BORDER="0"
    1.37 -CELLPADDING="0"
    1.38 -CELLSPACING="0"
    1.39 -><TR
    1.40 -><TH
    1.41 -COLSPAN="3"
    1.42 -ALIGN="center"
    1.43 ->SDL Library Documentation</TH
    1.44 -></TR
    1.45 -><TR
    1.46 -><TD
    1.47 -WIDTH="10%"
    1.48 -ALIGN="left"
    1.49 -VALIGN="bottom"
    1.50 -><A
    1.51 -HREF="sdlgetmodstate.html"
    1.52 -ACCESSKEY="P"
    1.53 ->Prev</A
    1.54 -></TD
    1.55 -><TD
    1.56 -WIDTH="80%"
    1.57 -ALIGN="center"
    1.58 -VALIGN="bottom"
    1.59 -></TD
    1.60 -><TD
    1.61 -WIDTH="10%"
    1.62 -ALIGN="right"
    1.63 -VALIGN="bottom"
    1.64 -><A
    1.65 -HREF="sdlgetkeyname.html"
    1.66 -ACCESSKEY="N"
    1.67 ->Next</A
    1.68 -></TD
    1.69 -></TR
    1.70 -></TABLE
    1.71 -><HR
    1.72 -ALIGN="LEFT"
    1.73 -WIDTH="100%"></DIV
    1.74 -><H1
    1.75 -><A
    1.76 -NAME="SDLSETMODSTATE"
    1.77 -></A
    1.78 ->SDL_SetModState</H1
    1.79 -><DIV
    1.80 -CLASS="REFNAMEDIV"
    1.81 -><A
    1.82 -NAME="AEN5752"
    1.83 -></A
    1.84 -><H2
    1.85 ->Name</H2
    1.86 ->SDL_SetModState&nbsp;--&nbsp;Set the current key modifier state</DIV
    1.87 -><DIV
    1.88 -CLASS="REFSYNOPSISDIV"
    1.89 -><A
    1.90 -NAME="AEN5755"
    1.91 -></A
    1.92 -><H2
    1.93 ->Synopsis</H2
    1.94 -><DIV
    1.95 -CLASS="FUNCSYNOPSIS"
    1.96 -><A
    1.97 -NAME="AEN5756"
    1.98 -></A
    1.99 -><P
   1.100 -></P
   1.101 -><PRE
   1.102 -CLASS="FUNCSYNOPSISINFO"
   1.103 ->#include "SDL.h"</PRE
   1.104 -><P
   1.105 -><CODE
   1.106 -><CODE
   1.107 -CLASS="FUNCDEF"
   1.108 ->void <B
   1.109 -CLASS="FSFUNC"
   1.110 ->SDL_SetModState</B
   1.111 -></CODE
   1.112 ->(SDLMod modstate);</CODE
   1.113 -></P
   1.114 -><P
   1.115 -></P
   1.116 -></DIV
   1.117 -></DIV
   1.118 -><DIV
   1.119 -CLASS="REFSECT1"
   1.120 -><A
   1.121 -NAME="AEN5762"
   1.122 -></A
   1.123 -><H2
   1.124 ->Description</H2
   1.125 -><P
   1.126 ->The inverse of <A
   1.127 -HREF="sdlgetmodstate.html"
   1.128 -><TT
   1.129 -CLASS="FUNCTION"
   1.130 ->SDL_GetModState</TT
   1.131 -></A
   1.132 ->, <TT
   1.133 -CLASS="FUNCTION"
   1.134 ->SDL_SetModState</TT
   1.135 -> allows you to impose modifier key states on your application.</P
   1.136 -><P
   1.137 ->Simply pass your desired modifier states into <TT
   1.138 -CLASS="PARAMETER"
   1.139 -><I
   1.140 ->modstate</I
   1.141 -></TT
   1.142 ->. This value my be a logical OR'd combination of the following:</P
   1.143 -><PRE
   1.144 -CLASS="PROGRAMLISTING"
   1.145 ->typedef enum {
   1.146 -  KMOD_NONE  = 0x0000,
   1.147 -  KMOD_LSHIFT= 0x0001,
   1.148 -  KMOD_RSHIFT= 0x0002,
   1.149 -  KMOD_LCTRL = 0x0040,
   1.150 -  KMOD_RCTRL = 0x0080,
   1.151 -  KMOD_LALT  = 0x0100,
   1.152 -  KMOD_RALT  = 0x0200,
   1.153 -  KMOD_LMETA = 0x0400,
   1.154 -  KMOD_RMETA = 0x0800,
   1.155 -  KMOD_NUM   = 0x1000,
   1.156 -  KMOD_CAPS  = 0x2000,
   1.157 -  KMOD_MODE  = 0x4000,
   1.158 -} SDLMod;</PRE
   1.159 -></DIV
   1.160 -><DIV
   1.161 -CLASS="REFSECT1"
   1.162 -><A
   1.163 -NAME="AEN5771"
   1.164 -></A
   1.165 -><H2
   1.166 ->See Also</H2
   1.167 -><P
   1.168 -><A
   1.169 -HREF="sdlgetmodstate.html"
   1.170 -><TT
   1.171 -CLASS="FUNCTION"
   1.172 ->SDL_GetModState</TT
   1.173 -></A
   1.174 -></P
   1.175 -></DIV
   1.176 -><DIV
   1.177 -CLASS="NAVFOOTER"
   1.178 -><HR
   1.179 -ALIGN="LEFT"
   1.180 -WIDTH="100%"><TABLE
   1.181 -SUMMARY="Footer navigation table"
   1.182 -WIDTH="100%"
   1.183 -BORDER="0"
   1.184 -CELLPADDING="0"
   1.185 -CELLSPACING="0"
   1.186 -><TR
   1.187 -><TD
   1.188 -WIDTH="33%"
   1.189 -ALIGN="left"
   1.190 -VALIGN="top"
   1.191 -><A
   1.192 -HREF="sdlgetmodstate.html"
   1.193 -ACCESSKEY="P"
   1.194 ->Prev</A
   1.195 -></TD
   1.196 -><TD
   1.197 -WIDTH="34%"
   1.198 -ALIGN="center"
   1.199 -VALIGN="top"
   1.200 -><A
   1.201 -HREF="index.html"
   1.202 -ACCESSKEY="H"
   1.203 ->Home</A
   1.204 -></TD
   1.205 -><TD
   1.206 -WIDTH="33%"
   1.207 -ALIGN="right"
   1.208 -VALIGN="top"
   1.209 -><A
   1.210 -HREF="sdlgetkeyname.html"
   1.211 -ACCESSKEY="N"
   1.212 ->Next</A
   1.213 -></TD
   1.214 -></TR
   1.215 -><TR
   1.216 -><TD
   1.217 -WIDTH="33%"
   1.218 -ALIGN="left"
   1.219 -VALIGN="top"
   1.220 ->SDL_GetModState</TD
   1.221 -><TD
   1.222 -WIDTH="34%"
   1.223 -ALIGN="center"
   1.224 -VALIGN="top"
   1.225 -><A
   1.226 -HREF="eventfunctions.html"
   1.227 -ACCESSKEY="U"
   1.228 ->Up</A
   1.229 -></TD
   1.230 -><TD
   1.231 -WIDTH="33%"
   1.232 -ALIGN="right"
   1.233 -VALIGN="top"
   1.234 ->SDL_GetKeyName</TD
   1.235 -></TR
   1.236 -></TABLE
   1.237 -></DIV
   1.238 -></BODY
   1.239 -></HTML
   1.240 ->
   1.241 \ No newline at end of file