* \brief Sets the callback\r
* \note Can be called from kernel mode only\r
*\r
* Sets the callback that is called when a event occurs (button or axis\r
* change). This function pointer must be in kernel mode (although,\r
* kernel->user or kernel->ring3driver abstraction functions can be used)\r
* \brief Sets the callback\r
* \note Can be called from kernel mode only\r
*\r
* Sets the callback that is called when a event occurs (button or axis\r
* change). This function pointer must be in kernel mode (although,\r
* kernel->user or kernel->ring3driver abstraction functions can be used)\r
- * \a MinValue and \a MaxValue describe the valid range for \a CurValue\r
- * While \a CurState is between zero and the current limit set by the\r
- * JOY_IOCTL_GETSETAXISLIMIT IOCtl.\r
+ * \a CursorPos is between zero and the current limit set by the\r
+ * JOY_IOCTL_GETSETAXISLIMIT IOCtl, while \a CurValue indicates the\r
+ * current position of the joystick axis. This is defined to be between\r
+ * \a MinValue and \a MaxValue.\r
*/\r
struct sJoystick_Axis\r
{\r
Sint16 MinValue; //!< Minumum value for \a CurValue\r
Sint16 MaxValue; //!< Maximum value for \a CurValue\r
Sint16 CurValue; //!< Current value (joystick position)\r
*/\r
struct sJoystick_Axis\r
{\r
Sint16 MinValue; //!< Minumum value for \a CurValue\r
Sint16 MaxValue; //!< Maximum value for \a CurValue\r
Sint16 CurValue; //!< Current value (joystick position)\r
+#define JOY_INFOSTRUCT(_naxies, _nbuttons) struct { \\r
+ Uint16 NAxies, NButtons;\\r
+ tJoystick_Axis Axies[_naxies];\\r
+ Uint16 Buttons[_nbuttons];\\r
+ }\r
+\r