Action Statement
Enable/disable use of a mouse or touchscreen.
{open|close} {mouse|touchscreen}
Description
If a device is the default device, it is already open.
Usually, open is part of a response to start response definition.
If an alternate device is still open when ESL encounters an exit statement, the device is implicitly closed. If the device is open when ESL encounters a change to program statement, the device will remain open for the new ESL program.
The touchscreen does not display a pointer.
The close statement closes an alternate pointing device that has been opened. Once a device has been closed, the device can no longer be used for selecting enabled graphical objects or items.
The keyword touchscreen is valid only for touchscreen applications.
All pointing devices, except for the default device, are closed unless explicitly opened with the open statement.
Example
response to UseTouch
close mouse
open touchscreen
response to UseMouse
open mouse
See Also
response to start Response Definition