Function


nuContDataReadStart


Syntax

void nuContDataReadStart(void)
Arguments
None
Return Value
None
Description

Start reading the Controller data

Reads Controller data directly from the application.

The Controller data is automatically read by the Controller Manager at retrace time. But this function is used to read the data at any arbitrary time from the application.

The read is performed asynchronously, so it is returned immediately, unlike with the nuContDataRead function. The nuContDataReadWait function is used to wait for the read to be completed. The read-in Controller data is obtained with nuContDataGet. To perform a synchronized read, use the nuContDataRead function.

Example

OSContPad	padData[NU_CONT_MAXCONTROLLERS];

/* Start to read the Controller data */
nuContDataReadStart();
	
......
	
/* Wait for read to end */
nuContDataReadWait();
/* Get the data */
nuContDataGetAll(padData);

See Also

nuContDataRead, nuContDataGet, and nuContDataReadWait