3.06 Pointer Processing

PEN Command

Function:

Enables/Disables the PEN/MOUSE mechanism.

Syntax:

PEN ON|OFF 

PEN Function

Function:

Returns the PEN/MOUSE data.

Syntax:

PEN (0..14) 

Values:

0
true (non zero) if there is a new pen or mouse event
1
PEN: last pen down x;
MOUSE: last mouse button down x
2
Same as 1 for y
3
true if the PEN is down;
MOUSE: mouse left button is pressed
4
PEN: last/current x,
MOUSE: the current x position only if the left mouse button is pressed (like PEN is down)
5
Same as PEN(4) for y

Mouse specific (non PalmOS):

10
current mouse x pos
11
current mouse y pos
12
true if the left mouse button is pressed
13
true if the right mouse button is pressed
14
true if the middle mouse button is pressed

* The driver must be enabled before using this function (see Pen command)


lynplex/lp0306.txt · Last modified: 2012/09/08 15:00 (external edit)