/**\r
- * \file api_drv_joystick\r
+ * \file api_drv_joystick.h\r
* \brief Joystick Driver Interface Definitions\r
* \author John Hodge (thePowersGang)\r
* \r
JOY_IOCTL_GETSETBUTTONFLAGS,\r
};\r
\r
+/**\r
+ * \brief Symbolic names for Joystick IOCtls\r
+ */\r
#define DRV_JOY_IOCTLNAMES "set_callback", "set_callback_arg", "getset_axis_limit", "getset_axis_position", \\r
"getset_axis_flags", "getset_button_flags"\r
\r
\r
/**\r
* \struct sJoystick_FileHeader\r
+ * \brief Format of the joystick VFS node's first bytes\r
*/\r
struct sJoystick_FileHeader\r
{\r
Uint16 CursorPos; //!< Current state (cursor position)\r
};\r
\r
+/**\r
+ * \brief Macro to define a structure for a joystick's node\r
+ * \param _naxies Number of axies\r
+ * \param _nbuttons Number of buttons\r
+ * \note This just defines the structure, it's up to the driver to set the\r
+ * sJoystick_FileHeader.NAxies and sJoystick_FileHeader.NButtons fields.\r
+ */\r
#define JOY_INFOSTRUCT(_naxies, _nbuttons) struct { \\r
Uint16 NAxies, NButtons;\\r
tJoystick_Axis Axies[_naxies];\\r