Datasheet
You should see the pencil turn green and the text 'abc' written over top of the icon. You might need to click the icon a
few times to get the click to register in the right spot.
When xstroke is looking for gesture input you can drag the mouse cursor in a gesture anywhere on the screen to send
specific key strokes. Here's a picture of the possible gestures you can send:
(credit to Carl Worth for the image above)
To draw a gesture from the above image, press anywhere on the screen, start from the circle in the gesture, and follow
the gesture pattern towards the arrow. As you draw a gesture you should see a blue line displayed that shows what
you've drawn. Lift up the stylus when you get to the end of the gesture at the arrow. If xstroke recognizes the gesture
it will send the appropriate key press to the active window. Try drawing a few characters from the image above to get
the hang of writing gestures.
A few very useful gestures are backspace (which deletes a character), return/enter, and space. To draw a backspace
gesture just draw a line going from the right side of the screen to the left side. The gesture for return/enter is a
diagonal line from the top right to bottom left. Finally a space is a straight line from the left to the right.
Note that when xstroke is looking for gestures you might not be able to click or control the cursor as you normally
would expect. To stop xstroke's gesture recognition carefully press the xstroke pencil icon again until the 'abc' text
disappears. I've found this process can be a little finicky as the icon is very small and any movement will be interpreted
as a gesture. Use a light touch and try a few times to click the icon.
If you get stuck completely and can't disable xstroke by clicking the icon, connect to the Raspberry Pi in a terminal/SSH
connection and run 'killall xstroke' (without quotes) to force xstroke to quit. The normal way to stop xstroke is to
© Adafruit Industries
https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-
pi
Page 65 of 70










