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_JoyHatEvent"("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_JoyHatEvent- Joystick hat position change event structure
- <h2><a name='sect1' href='#toc1'>Structure
- Definition</a></h2>
- <p>
- <br>
- <pre>CWtypedef struct{
- Uint8 type;
- Uint8 which;
- Uint8 hat;
- Uint8 value;
- } SDL_JoyHatEvent;
- </pre><p>
-
- <h2><a name='sect2' href='#toc2'>Structure Data</a></h2>
-
- <dl>
-
- <dt><b>type</b> </dt>
- <dd><b>SDL_JOY</b> </dd>
-
- <dt><b>which</b> </dt>
- <dd>Joystick device index </dd>
-
- <dt><b>hat</b> </dt>
- <dd>Joystick hat
- index </dd>
-
- <dt><b>value</b> </dt>
- <dd>Hat position </dd>
- </dl>
-
- <h2><a name='sect3' href='#toc3'>Description</a></h2>
- <p>
- <b>SDL_JoyHatEvent</b> is a member of the
- <i><b>SDL_Event</b></i> union and is used when an event of type <b>SDL_JOYHATMOTION</b> is reported.
- <p>
- A <b>SDL_JOYHATMOTION</b> event occurs when ever a user moves a hat on the joystick.
- The field <b>which</b> is the index of the joystick that reported the event and
- <b>hat</b> is the index of the hat (for a more detailed exlaination see the <i>Joystick
- section</i>). <b>value</b> is the current position of the hat. It is a logically OR'd
- combination of the following values (whose meanings should be pretty obvious:)
- :
- <dl>
-
- <dt><b>SDL_HAT_CENTERED</b> </dt>
- <dd></dd>
-
- <dt><b>SDL_HAT_UP</b> </dt>
- <dd></dd>
-
- <dt><b>SDL_HAT_RIGHT</b> </dt>
- <dd></dd>
-
- <dt><b>SDL_HAT_DOWN</b> </dt>
- <dd></dd>
-
- <dt><b>SDL_HAT_LEFT</b> </dt>
- <dd></dd>
- </dl>
- <p>
- The
- following defines are also provided:
- <dl>
-
- <dt><b>SDL_HAT_RIGHTUP</b> </dt>
- <dd></dd>
-
- <dt><b>SDL_HAT_RIGHTDOWN</b>
- </dt>
- <dd></dd>
-
- <dt><b>SDL_HAT_LEFTUP</b> </dt>
- <dd></dd>
-
- <dt><b>SDL_HAT_LEFTDOWN</b> </dt>
- <dd></dd>
- </dl>
-
- <h2><a name='sect4' href='#toc4'>See Also</a></h2>
- <p>
- <i><b>SDL_Event</b></i>, <i>Joystick Functions</i>,
- <i><b>SDL_JoystickEventState</b></i>, <i><b>SDL_JoystickGetHat</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>
-