Changes between Version 6 and Version 7 of libwiimote

Show
Ignore:
Timestamp:
02/28/07 22:29:06 (6 years ago)
Author:
dsmith
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • libwiimote

    v6 v7  
    77}}} 
    88==== Parameters ==== 
    9  bdaddr:: in: bluetooth device address of the wiimote.  Use `*BDADDR_ANY` to connect to the any (one) available wiimote. 
    10  mesg_callback:: in: message callback function 
    11  id:: out: `NULL`, or pointer to unique id 
     9 bdaddr:: bluetooth device address of the wiimote.  Use `*BDADDR_ANY` to connect to the any (one) available wiimote. 
     10 mesg_callback:: [wiki:libwiimote#wiimote_message_callback message callback function] 
     11 id:: `NULL`, or pointer to be populated with unique id 
    1212==== Description ==== 
    1313Connect to a wiimote. 
     
    9797==== Return Value ==== 
    9898zero on success or nonzero on error 
     99---- 
     100 
     101=== wiimote_mesg_callback === 
     102==== Synopsis ==== 
     103{{{ 
     104#!c 
     105void wiimote_mesg_callback_t(int id, int mesg_count, union wiimote_mesg* mesg[]) 
     106}}} 
     107==== Parameters ==== 
     108 id:: unique wiimote identifier 
     109 mesg_count:: count of elements in mesg array 
     110 mesg:: array of pointers to wiimote messages 
     111==== Description ==== 
     112A pointer to a function of this type is passed to [wiki:libwiimote#wiimote_connect wiimote_connect], and is called when data is received from wiimote for which reporting has been enabled with [wiki:libwiimote#wiimote_command wiimote_command].