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_KeyboardEvent"("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_KeyboardEvent- Keyboard event structure
- <h2><a name='sect1' href='#toc1'>Structure Definition</a></h2>
- <p>
- <br>
- <pre>CWtypedef struct{
- Uint8 type;
- Uint8 state;
- SDL_keysym keysym;
- } SDL_KeyboardEvent;
- </pre><p>
-
- <h2><a name='sect2' href='#toc2'>Structure Data</a></h2>
-
- <dl>
-
- <dt><b>type</b> </dt>
- <dd><b>SDL_KEYDOWN</b> or <b>SDL_KEYUP</b> </dd>
-
- <dt><b>state</b> </dt>
- <dd><b>SDL_PRESSED</b> or <b>SDL_RELEASED</b>
- </dd>
-
- <dt><b>keysym</b> </dt>
- <dd>Contains key press information </dd>
- </dl>
-
- <h2><a name='sect3' href='#toc3'>Description</a></h2>
- <p>
- <b>SDL_KeyboardEvent</b> is a
- member of the <i><b>SDL_Event</b></i> union and is used when an event of type <b>SDL_KEYDOWN</b>
- or <b>SDL_KEYUP</b> is reported. <p>
- The <b>type</b> and <b>state</b> actually report the same information,
- they just use different values to do it! A keyboard event occurs when a
- key is released (<b>type</b>=<b>SDK_KEYUP</b> or <b>state</b>=<b>SDL_RELEASED</b>) and when a key is
- pressed (<b>type</b>=<b>SDL_KEYDOWN</b> or <b>state</b>=<b>SDL_PRESSED</b>). The information on what
- key was pressed or released is in the <i><b>keysym</b></i> structure. <p>
- <blockquote><b>Note: <p>
- Repeating
- <b>SDL_KEYDOWN</b></b> events will occur if key repeat is enabled (see <i><b>SDL_EnableKeyRepeat</b></i>).
- </blockquote>
-
- <h2><a name='sect4' href='#toc4'>See Also</a></h2>
- <p>
- <i><b>SDL_Event</b></i>, <i><b>SDL_keysym</b></i>, <i><b>SDL_EnableKeyRepeat</b></i>, <i><b>SDL_EnableUNICODE</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'>Structure Definition</a></li>
- <li><a name='toc2' href='#sect2'>Structure Data</a></li>
- <li><a name='toc3' href='#sect3'>Description</a></li>
- <li><a name='toc4' href='#sect4'>See Also</a></li>
- </ul>
- </body>
- </html>
-