home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !SDL / man / SDL_JoyBallEvent.3 < prev    next >
Encoding:
Text File  |  2006-09-20  |  2.1 KB  |  73 lines

  1. <!-- manual page source format generated by PolyglotMan v3.0.8+X.Org, -->
  2. <!-- available at http://polyglotman.sourceforge.net/ -->
  3.  
  4. <html>
  5. <head>
  6. <title>"SDL_JoyBallEvent"("3") manual page</title>
  7. </head>
  8. <body bgcolor='#efefef' text='black' link='blue' vlink='#551A8B' alink='red'>
  9. <a href='#toc'>Table of Contents</a><p>
  10.  
  11. <h2><a name='sect0' href='#toc0'>Name</a></h2>
  12. SDL_JoyBallEvent- Joystick trackball motion event structure 
  13. <h2><a name='sect1' href='#toc1'>Structure
  14. Definition</a></h2>
  15. <p>
  16. <br>
  17. <pre>CWtypedef struct{
  18.   Uint8 type;
  19.   Uint8 which;
  20.   Uint8 ball;
  21.   Sint16 xrel, yrel;
  22. } SDL_JoyBallEvent;
  23. </pre><p>
  24.  
  25. <h2><a name='sect2' href='#toc2'>Structure Data</a></h2>
  26.  
  27. <dl>
  28.  
  29. <dt><b>type</b> </dt>
  30. <dd><b>SDL_JOYBALLMOTION</b> </dd>
  31.  
  32. <dt><b>which</b> </dt>
  33. <dd>Joystick device index </dd>
  34.  
  35. <dt><b>ball</b> </dt>
  36. <dd>Joystick
  37. trackball index </dd>
  38.  
  39. <dt><b>xrel</b>, <b>yrel</b> </dt>
  40. <dd>The relative motion in the X/Y direction </dd>
  41. </dl>
  42.  
  43. <h2><a name='sect3' href='#toc3'>Description</a></h2>
  44. <p>
  45. <b>SDL_JoyBallEvent</b>
  46. is a member of the <i><b>SDL_Event</b></i> union and is used when an event of type <b>SDL_JOYBALLMOTION</b>
  47. is reported. <p>
  48. A <b>SDL_JOYBALLMOTION</b> event occurs when a user moves a trackball
  49. on the joystick. The field <b>which</b> is the index of the joystick that reported
  50. the event and <b>ball</b> is the index of the trackball (for a more detailed explaination
  51. see the <i>Joystick section</i>). Trackballs only return relative motion, this
  52. is the change in position on the ball since it was last polled (last cycle
  53. of the event loop) and it is stored in <b>xrel</b> and <b>yrel</b>. 
  54. <h2><a name='sect4' href='#toc4'>See Also</a></h2>
  55. <p>
  56. <i><b>SDL_Event</b></i>,
  57. <i>Joystick Functions</i>, <i><b>SDL_JoystickEventState</b></i>, <i><b>SDL_JoystickGetBall</b></i> 
  58. <!--
  59.   
  60.  <p>
  61.  
  62. <hr><p>
  63. <a name='toc'><b>Table of Contents</b></a><p>
  64. <ul>
  65. <li><a name='toc0' href='#sect0'>Name</a></li>
  66. <li><a name='toc1' href='#sect1'>Structure Definition</a></li>
  67. <li><a name='toc2' href='#sect2'>Structure Data</a></li>
  68. <li><a name='toc3' href='#sect3'>Description</a></li>
  69. <li><a name='toc4' href='#sect4'>See Also</a></li>
  70. </ul>
  71. </body>
  72. </html>
  73.