Difference between revisions of "83Plus:Software:usb8x/Asm Interface/Mouse"
From WikiTI
Line 9: | Line 9: | ||
{| border="1" cellpadding="2" cellspacing="0" | {| border="1" cellpadding="2" cellspacing="0" | ||
|- | |- | ||
− | | [[/MouseInit|MouseInit]] || Initialize the mouse driver and hardware | + | | [[83Plus:Software:usb8x/Asm_Interface/Mouse/MouseInit|MouseInit]] || Initialize the mouse driver and hardware |
|- | |- | ||
| [[/MouseGetKey|MouseGetKey]] || Get movement and button information | | [[/MouseGetKey|MouseGetKey]] || Get movement and button information | ||
|} | |} |
Revision as of 18:51, 22 February 2010
The usb8x mouse driver is compatible with any mouse conforming to the USB HID mouse standard. However, it is not compatible with devices that have a mouse connected to an internal hub (combination keyboard/mice, for example).
The mouse driver is initialized via MouseInit. This entry point initializes both the driver and the mouse hardware, so you may want to check to see if a device is connected via [[../IsDeviceConnected|IsDeviceConnected]] first.
After initializing the mouse, use MouseGetKey to get movement and button information. [[../../Sample_Code#Mouse_Demo_2|Sample code]] using the mouse driver is available.
Entry Points
MouseInit | Initialize the mouse driver and hardware |
MouseGetKey | Get movement and button information |