Professional Documents
Culture Documents
ClipCursor
CreateCursor
This function creates a cursor having the specified size, bit patterns, and
hot spot.
DestroyCursor
This function destroys a cursor created by the CreateCursor function and frees
any memory the cursor occupied.
GetCapture
This function retrieves the handle to the window, if any, that has captured
the mouse or stylus input.
GetClipCursor
GetCursor
GetCursorPos
GetDoubleClickTime
This function retrieves the current double-click time for the mouse or stylus.
GetMouseMovePoints
LoadAnimatedCursor
LoadCursor
mouse_event
ReleaseCapture
This function releases the mouse or stylus capture from a window in the
current thread and restores normal processing of input.
SetCapture
This function sets the mouse or style capture to a specified window that
belongs to the current thread.
SetCursor
SetCursorPos
ShowCursor
The mouse is controlled using the mouse functions at interrupt 33h. There are many
functions, but this section will only cover the basic set required to get things
going. For more information, see the references on the web page.
In order to use the mouse, you must first call Function 0000h (Reset Driver and
Read Status). This initializes the drivers and hardware. The mouse cursor will
initially be hidden, so you must use Function 0001h (Show Mouse Cursor) to make it
visible. From then on, just call Function 0003h (Return Position and Button
Status) to get the position and button status whenever your program needs it. Make
sure you hide the mouse cursor before your program exits.
In normal usage, the keyboard is used to type text and numbers into a word
processor, text editor or other program. In a modern computer, the interpretation
of keypresses is generally left to the software. A computer keyboard distinguishes
each physical key from every other and reports all keypresses to the controlling
software. Keyboards are also used for computer gaming, either with regular
keyboards or by using keyboards with special gaming features, which can expedite
frequently used keystroke combinations. A keyboard is also used to give commands
to the operating system of a computer, such as Windows' Control-Alt-Delete
combination, which brings up a task