Add a wiiuse_millisleep function.

This commit is contained in:
Ryan Pavlik
2011-09-06 13:37:44 -05:00
parent 3e9f9a8f7e
commit 9cc64c51b1
3 changed files with 59 additions and 0 deletions

View File

@@ -248,6 +248,15 @@ extern "C" {
#endif
/* not part of the api */
/** @brief Cross-platform call to sleep for at least the specified number
* of milliseconds.
*
* Use instead of Sleep(), usleep(), or similar functions.
* Defined in util.c
*/
void wiiuse_millisleep(int durationMilliseconds);
int wiiuse_set_report_type(struct wiimote_t* wm);
void wiiuse_send_next_pending_read_request(struct wiimote_t* wm);
int wiiuse_send(struct wiimote_t* wm, byte report_type, byte* msg, int len);