Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:ibm:prcp:open [2016/02/04 02:30] – valerius | en:ibm:prcp:open [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== MouOpen ==== | ||
| - | |||
| - | **Bindings**: | ||
| - | |||
| - | This call opens the mouse device for the current session. | ||
| - | |||
| - | //MouOpen// (**DriverName, | ||
| - | |||
| - | // | ||
| - | // | ||
| - | |||
| - | The name of the device driver must be included in the **CONFIG.SYS** file at system start-up time. Applications that use the default pointer draw device driver supplied by the system must push a double-word of 0s in place of an address. | ||
| - | |||
| - | // | ||
| - | |||
| - | // | ||
| - | Address of a 1-word value that represents the mouse handle returned to the application. | ||
| - | |||
| - | //rc// (**USHORT**) - return | ||
| - | Return code descriptions are: | ||
| - | |||
| - | |0 |NO_ERROR | | ||
| - | |385 |ERROR_MOUSE_NO_DEVICE | | ||
| - | |390 |ERROR_MOUSE_INV_MODULE_PT | | ||
| - | |466 |ERROR_MOU_DETACHED | | ||
| - | |501 |ERROR_MOUSE_NO_CONSOLE | | ||
| - | |505 |ERROR_MOU_EXTENDED_SG | | ||
| - | |||
| - | **Remarks** | ||
| - | |||
| - | [[open|MouOpen]] initializes the Mouse functions to a known state. The application may have to issue additional mouse functions to establish the environment it desires. For example, after the [[open|MouOpen]], | ||
| - | |||
| - | The state of the mouse after the first [[open|MouOpen]] is: | ||
| - | |||
| - | * Row/Col scale factors set to 16/8. (See [[setscalefact|MouSetScaleFact]].) | ||
| - | * All events reported. (See [[seteventmask|MouSetEventMask]].) | ||
| - | * Empty event queue. (See [[readeentque|MouReadEventQue]] and [[getnumqueel|MouGetNumQueEl]].) | ||
| - | * All user settable Device Status bits reset. (Set to zero. See [[setdevstatus|MouSetDevStatus]].) | ||
| - | * Pointer set to center of screen if valid display mode is set. (See [[setptrpos|MouSetPtrPos]].) | ||
| - | * Pointer shape set to the default for the pointer device driver currently registered in the session. (See [[setptrshape|MouSetPtrShape]].) | ||
| - | * Collision area equal to full screen. (See [[drawptr|MouDrawPtr]] and [[removeptr|MouRemovePtr]].) | ||




