home *** CD-ROM | disk | FTP | other *** search
- <!-- manual page source format generated by PolyglotMan v3.0.8+X.Org, -->
- <!-- available at http://polyglotman.sourceforge.net/ -->
-
- <html>
- <head>
- <title>"SDL_GetModState"("3") manual page</title>
- </head>
- <body bgcolor='#efefef' text='black' link='blue' vlink='#551A8B' alink='red'>
- <a href='#toc'>Table of Contents</a><p>
-
- <h2><a name='sect0' href='#toc0'>Name</a></h2>
- SDL_GetModState- Get the state of modifier keys.
- <h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
- <p>
- <b>#include "SDL.h"
- <p>
- </b><b>SDLMod <b>SDL_GetModState</b></b>(<b>void</b>);
- <h2><a name='sect2' href='#toc2'>Description</a></h2>
- <p>
- Returns the current state of the
- modifier keys (CTRL, ALT, etc.).
- <h2><a name='sect3' href='#toc3'>Return Value</a></h2>
- <p>
- The return value can be an OR'd
- combination of the SDLMod enum. <p>
- <p>
- <blockquote><b>SDLMod</b> <p>
- <p>
- <br>
- <pre>CWtypedef enum {
- KMOD_NONE = 0x0000,
- KMOD_LSHIFT= 0x0001,
- KMOD_RSHIFT= 0x0002,
- KMOD_LCTRL = 0x0040,
- KMOD_RCTRL = 0x0080,
- KMOD_LALT = 0x0100,
- KMOD_RALT = 0x0200,
- KMOD_LMETA = 0x0400,
- KMOD_RMETA = 0x0800,
- KMOD_NUM = 0x1000,
- KMOD_CAPS = 0x2000,
- KMOD_MODE = 0x4000,
- } SDLMod;
- </pre><p>
- </blockquote>
- SDL also defines the following symbols for convenience: <br>
- <p>
- <blockquote><p>
- <br>
- <pre>CW#define KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL)
- #define KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT)
- #define KMOD_ALT (KMOD_LALT|KMOD_RALT)
- #define KMOD_META (KMOD_LMETA|KMOD_RMETA)
- </pre><p>
- </blockquote>
-
- <h2><a name='sect4' href='#toc4'>See Also</a></h2>
- <p>
- <i><b>SDL_GetKeyState</b></i>
- <!--
-
- <p>
-
- <hr><p>
- <a name='toc'><b>Table of Contents</b></a><p>
- <ul>
- <li><a name='toc0' href='#sect0'>Name</a></li>
- <li><a name='toc1' href='#sect1'>Synopsis</a></li>
- <li><a name='toc2' href='#sect2'>Description</a></li>
- <li><a name='toc3' href='#sect3'>Return Value</a></li>
- <li><a name='toc4' href='#sect4'>See Also</a></li>
- </ul>
- </body>
- </html>
-