83Plus:Software:usb8x/Asm Interface/Pad/PadInit
From WikiTI
Synopsis
Name: PadInit
Minimum usb8x version: 0.11
Initialize the gamepad driver and hardware
Inputs
- HL: Address of buffer for gamepad driver's RAM storage
- DE: Address of temporary buffer for descriptors
Outputs
- NC: Success
Destroys
- AF, BC, DE, HL, IX
Notes
Initializes the USB host but assumes the USB driver has already been initialized with [[../../DriverInit|DriverInit]].
Use [[../PadVersion|PadVersion]] to find the exact amount of memory required for the gamepad driver's RAM, or just use 32 bytes as a safe static value.
The callback you specified during U_CALL_INIT will be used if you're using the U_CALL system. Otherwise specifiy the callback in register IX.
See Also
- [[../PadSetup|PadSetup]] - Get offsets and masks for button mappings