Module interface:touchscreen - Generic touchscreen interface
Generic touchscreen interface. This allows specific control of a touchscreen controller, such as setting the pressure sensitivity threshold, and determining characteristics of the device.
Index
-
Channel type
CT.TOUCHSCREEN- Touchscreen channel-type-
Variable
in?- Commands to touchsceren -
Variable
out!- Responses from touchscreen
-
Variable
-
Protocol
P.TOUCHSCREEN.IN- Touchscreen input protocol-
Tag
read.pres- Read screen pressures, returns array of pressure values -
Tag
read.psense- Read pressure sensitivity, returns [thres, btn.hi, btn.lo] -
Tag
read.xrange- Read X range, returns [x.min, x.cur, x.max, x.scaled] -
Tag
read.yrange- Read Y range, returns [y.min, y.cur, y.max, y.scaled] -
Tag
set.psense- Set pressure sensitivity, expects array of [thres, btn.hi, btn.lo]
-
Tag
-
Protocol
P.TOUCHSCREEN.OUT- Touchscreen output protocol-
Tag
result- Generic result for set. -
Tag
vals- Resulting values
-
Tag
Declarations
touchscreen.inc:28Protocol P.TOUCHSCREEN.IN
PROTOCOL P.TOUCHSCREEN.IN
Touchscreen input protocol.
touchscreen.inc:30Tag read.xrange
read.xrange
Read X range, returns [x.min, x.cur, x.max, x.scaled].
touchscreen.inc:31Tag read.yrange
read.yrange
Read Y range, returns [y.min, y.cur, y.max, y.scaled].
touchscreen.inc:32Tag read.pres
read.pres
Read screen pressures, returns array of pressure values.
touchscreen.inc:34Tag read.psense
read.psense
Read pressure sensitivity, returns [thres, btn.hi, btn.lo].
touchscreen.inc:35Tag set.psense
set.psense; MOBILE []INT
Set pressure sensitivity, expects array of [thres, btn.hi, btn.lo].
touchscreen.inc:39Protocol P.TOUCHSCREEN.OUT
PROTOCOL P.TOUCHSCREEN.OUT
Touchscreen output protocol.
touchscreen.inc:41Tag result
result; INT
Generic result for set.. commands.
touchscreen.inc:42Tag vals
vals; MOBILE []INT
Resulting values.
touchscreen.inc:46Channel type CT.TOUCHSCREEN
CHAN TYPE CT.TOUCHSCREEN
Touchscreen channel-type.
touchscreen.inc:48Variable in?
CHAN P.TOUCHSCREEN.IN
Commands to touchsceren.
touchscreen.inc:49Variable out!
CHAN P.TOUCHSCREEN.OUT
Responses from touchscreen.