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
|
osContSetChSyntax#include <ultra64.h> /* os.h */ s32 osContSetCh(u8 ch); s32 osContSetCh(u8 ch);
Explanation
osContStartReadData()
By default, it is set for the system to read device data of the number specified in MAXCONTROLLERS Direct SI devices that the sytem reads range from port 0 to port (ch-1). Note that it cannot be used to obtain the data only from the devices connected to Port 2 and Port 3 out of the number specified in MAXCONTROLLERS. It must start with the first port which is Port 0 in this case. Also ch cannot be greater than the nunber of MAXCONTROLLERS By setting ch to a number smaller than MAXCONTROLLERS, you can save time in polling for Controller data. For instance, it can take as much as 2 milliseconds for the the osContStartReadData function to issue read command and receive a message for completed data reading and for the osContGetReadData fucntion to obtain data from Controller when ch is set to MAXCONTROLLERS. However, you can save around 0.3 milliseconeds for every MAXCONTROLLERS you reduce.
Notes
See Also
|