Home |
RTTarget-32 Programming Manual Function RTInitMouse System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) |
Function RTInitMouseFunction RTInitMouse installs and initializes RTTarget-32's mouse driver. This driver supports Microsoft compatible serial and PS/2 mice. It does not display a mouse cursor on the screen, but merely generates mouse events in the program's console event queue: void RTInitMouse(int PortIOBase, int PortIRQ, int DoubleClickSpeed, int ScaleX, int ScaleY); ParametersPortIOBaseThe port I/O address of the serial port used by the mouse. For standard ports, you should use 3F8h (COM1), 2F8h (COM2), 3E8h (COM3), or 2E8h (COM4). For a PS/2 mouse or PS/2 compatible touch screen, this parameter must be -1. PortIRQThe interrupt request line of the serial port. Typical values are 4, 3, 4, and 3 for the ports COM 1, 2, 3, and 4, respectively. PS/2 mice always use IRQ 12; thus, RTInitTextMouse ignores this value for PS/2 mice. DoubleClickSpeedMaximum number of milliseconds between left button clicks to form a double click. This value may be zero. In this case, a default value of 300 is used. ScaleXThe factor by which raw horizontal mouse motion is multiplied. Large values cause fast mouse motion. ScaleYThe factor by which raw vertical mouse motion is multiplied. Large values cause fast mouse motion. Please see section Win32 Console I/O for information on how mouse and keyboard events are processed by RTTarget-32. All RTPEG-32 and MetaWINDOW demo programs use the mouse driver.
|