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
|
|
nuContMgrInit
Format
u8 nuContMgrInit(void)
Returned Value
The bit pattern of the connected Controller
What This Function Does
It initializes and activates the Controller Manager. The returned value is the bit pattern of the connected Controller:
7 6 5 4 3 2 1 0 bit
-------------------------------------
bit pattern | - | - | - | - | 4 | 3 | 2 | 1 |
-------------------------------------
If the Controller is connected, the bit is 1. SI events are assigned to the Controller Manager when it is initialized so the Controller Manager manages all devices that use SI events. This is done to be certain of exclusive control.
The Controller Manager can register three types of callback functions:
- The callback function that is executed after the Controller data is read - this is the callback function that is executed when the Controller Manager finishes reading the Controller data at the time of a retrace. As the default, nothing is entered.
- The Controller Pak Manager callback function - this function reads or writes to the Controller Pak. As the default, the nuContInit function calls the nuContPakMgrInit function to register the NuSystem Controller Pak Manager. To use your application's Controller Pak Manager, you can register the callback function by using the nuContPakFuncSet function.
- The Rumble Pak Manager callback function - this function controls the Rumble Pak. As the default, the nuContInit function calls the nuContRmbMgrInit function to register the NuSystem Rumble Pak Manager. To use your application's Rumble Pak Manager, register the callback function by using the nuContRmbFuncSet function. The nuContInit calls this function, so there is no need to use it from your application, but if the nuContInit function is not used and independent functions are created in the application, this function can be used to initialize and activate the Controller Manager.
See Also
nuContInit
nuContPakMgrInit
nuContPakFuncSet
nuContRmbMgrInit
nuContRmbFuncSet
|
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
|
|