Difference between revisions of "83Plus:Software:usb8x/Asm Interface/Mouse/MouseInit"

From WikiTI
Jump to: navigation, search
m (Notes: clarifying initialization)
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
'''Name:''' MouseInit
 
'''Name:''' MouseInit
  
'''Minimum usb8x version:''' 0.08
+
'''Minimum usb8x version:''' 0.11
  
 
Initialize mouse driver
 
Initialize mouse driver
  
 
=== Inputs ===
 
=== Inputs ===
* HL: Address of temporary descriptor buffer  
+
* DE: Address of temporary descriptor buffer  
 
* B: Flags
 
* B: Flags
 
** bit 0: set = allow diagonal keys, reset = disallow
 
** bit 0: set = allow diagonal keys, reset = disallow
 +
** bit 1: set = use passthrough callback
  
 
=== Outputs ===
 
=== Outputs ===
Line 15: Line 16:
  
 
=== Destroys ===
 
=== Destroys ===
* AF, BC, DE, HL
+
* AF, BC, DE, HL, IX
  
 
== Notes ==
 
== Notes ==
Initializes the USB host but assumes the USB driver has already been initialized with [[../../DriverInit|DriverInit]]. MouseInit resets the callback address for use with the mouse, so the callback address passed to U_CALL_INIT will not be used.
+
'''Important''': The mouse driver inputs changed starting at version 0.11 of usb8x.  Be sure to use [[83Plus:Software:usb8x/Asm_Interface/GetVersion|GetVersion]] to check that 0.11 of higher is installed before using the mouse driver.
  
 +
Initializes the USB host but assumes the USB driver has already been initialized with [[83Plus:Software:usb8x/Asm_Interface/DriverInit|DriverInit]].
 +
 +
If you indicate to pass callbacks through, the callback address specified in U_CALL_INIT will be used if the U_CALL system is being used.  Otherwise pass the callback address in register IX.
 
== See Also ==
 
== See Also ==
* [[../MouseGetKey|MouseGetKey]] - Get mouse movement and button presses
+
* [[83Plus:Software:usb8x/Asm_Interface/Mouse/MouseGetKey|MouseGetKey]] - Get mouse movement and button presses

Latest revision as of 18:54, 22 February 2010

Synopsis

Name: MouseInit

Minimum usb8x version: 0.11

Initialize mouse driver

Inputs

  • DE: Address of temporary descriptor buffer
  • B: Flags
    • bit 0: set = allow diagonal keys, reset = disallow
    • bit 1: set = use passthrough callback

Outputs

  • NC: Success

Destroys

  • AF, BC, DE, HL, IX

Notes

Important: The mouse driver inputs changed starting at version 0.11 of usb8x. Be sure to use GetVersion to check that 0.11 of higher is installed before using the mouse driver.

Initializes the USB host but assumes the USB driver has already been initialized with DriverInit.

If you indicate to pass callbacks through, the callback address specified in U_CALL_INIT will be used if the U_CALL system is being used. Otherwise pass the callback address in register IX.

See Also