DEVICE DRIVERS
touchCmd()
M
X
800 SERIES PROGRAMMERS GUIDE 121
touchCmd()
touchCmd() is used to set and get touch panel functionality per the following
table:
Prototype
int touchCmd(int cmd, int value)
Table 7
cmd value return Notes
2 N.A Bit values 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”);
4 0 or 1 N.A Set input method:
0 = Finger or Stylus (Automatic)
1 = Stylus only
X N.A N.A All cmd values not listed are RESERVED