N64® Functions Menu

al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential

   

nuContDataReadStart

Format
void nuContDataReadStart(void)

Returned Value
none

What This Function Does
It starts to read the Controller data directly from the game application. Usually, the Controller Manager automatically reads the Controller data at the time of a retrace. But this function can be used if you want to read the Controller's data from the game application at an arbitrary time. The read is not synchronized, so it is quickly returned, unlike with the nuContDataRead function. To wait for the end of the read, use the nuContDataReadWait function. The Controller data that is read can be fetched with the nuContDataGet function. If you want to conduct a synchronized read, use the nuContDataRead function.

Example
OSContPad padData[NU_CONT_MAXCONTROLLERS];

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

/* Get the data */
nuContDataGetAll(padData);
See Also
nuContDataRead
nuContDataGet
nuContDataReadWait



Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated January 1998