Doxygen-ize methods exported to the server
This commit is contained in:
+17
-8
@@ -70,9 +70,12 @@ MODULE_EXPORT int supports_multiple = 0;
|
|||||||
MODULE_EXPORT char *symbol_prefix = "joy_";
|
MODULE_EXPORT char *symbol_prefix = "joy_";
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
/**
|
||||||
// init() should set up any device-specific stuff, and
|
* Initialize the driver.
|
||||||
// point all the function pointers.
|
* \param drvthis Pointer to driver structure.
|
||||||
|
* \retval 0 Success.
|
||||||
|
* \retval <0 Error.
|
||||||
|
*/
|
||||||
MODULE_EXPORT int
|
MODULE_EXPORT int
|
||||||
joy_init (Driver *drvthis)
|
joy_init (Driver *drvthis)
|
||||||
{
|
{
|
||||||
@@ -177,6 +180,10 @@ joy_init (Driver *drvthis)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Close the driver (do necessary clean-up).
|
||||||
|
* \param drvthis Pointer to driver structure.
|
||||||
|
*/
|
||||||
MODULE_EXPORT void
|
MODULE_EXPORT void
|
||||||
joy_close (Driver *drvthis)
|
joy_close (Driver *drvthis)
|
||||||
{
|
{
|
||||||
@@ -197,11 +204,13 @@ joy_close (Driver *drvthis)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
/**
|
||||||
// Tries to read a character from an input device...
|
* Get key from the joystick.
|
||||||
//
|
* Map the joystick events (move, button press) to a key.
|
||||||
// Return NULL0 for "nothing available".
|
* \param drvthis Pointer to driver structure.
|
||||||
//
|
* \return String representation of the key;
|
||||||
|
* \c NULL for nothing available / error.
|
||||||
|
*/
|
||||||
MODULE_EXPORT const char *
|
MODULE_EXPORT const char *
|
||||||
joy_get_key (Driver *drvthis)
|
joy_get_key (Driver *drvthis)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user