touchCmd()
touchCmd() is used to set and get touch panel functionality per the following
table:
Table 7
cmd
value
return
2
N.A
Bit values
4
0 or 1
N.A
X
N.A
N.A
Prototype
int touchCmd(int cmd, int value)
Notes
Returns the status of the stylus.
Bits 1 or 2 = 1 if a stylus is attached
All other bits reserved.
Example:
If (touchCmd(2,0) & 0x06)
printf("Stylus Attached");
Set input method:
0 = Finger or Stylus (Automatic)
1 = Stylus only
All cmd values not listed are RESERVED
X
M
800 S
ERIES
D
D
EVICE
RIVERS
touchCmd()
121
P
G
ROGRAMMERS
UIDE