Modifications

Sauter à la navigation Sauter à la recherche
1 558 octets ajoutés ,  21 septembre 2014 à 09:24
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{RASP-PiTFT-NAV}}
 
{{RASP-PiTFT-NAV}}
 +
 +
== Introduction ==
    
{{bloc-etroit|text=With the PiTFT touchscreen and [http://cworth.org/~cworth/papers/xstroke/ xstroke] you can enter text in applications by drawing simple character gestures on the screen!  
 
{{bloc-etroit|text=With the PiTFT touchscreen and [http://cworth.org/~cworth/papers/xstroke/ xstroke] you can enter text in applications by drawing simple character gestures on the screen!  
Ligne 13 : Ligne 15 :  
|border=0
 
|border=0
 
}}
 
}}
 +
 +
== Installation ==
 +
Unfortunately xstroke hasn't been actively maintained for a few years so there isn't a binary package you can directly install. However compiling the tool is straightforward and easy with the steps below. Credit for these installation steps goes to [http://ozzmaker.com/2014/06/17/raspberry-pi-with-stroke-and-gesture-recognition/ mwilliams03 at ozzmaker.com].
 +
 +
First install a few dependencies by opening a command window on the Pi and executing:
 +
 +
sudo apt-get -y install build-essential libxft-dev libxpm-dev libxtst-dev
 +
 +
Now download, compile, and install xstroke by executing:
 +
 +
<nowiki>cd ~
 +
wget http://mirror.egtvedt.no/avr32linux.org/twiki/pub/Main/XStroke/xstroke-0.6.tar.gz
 +
tar xfv xstroke-0.6.tar.gz
 +
cd xstroke-0.6
 +
./configure
 +
make
 +
sudo make install</nowiki>
 +
 +
If the commands above execute successfully xstroke should be installed. If you see an error message, carefully check the dependencies above were installed and try again.
 +
 +
Once xstroke is installed you will want to add a couple menu shortcuts to start and stop xstroke. Execute the following commands to install these shortcuts:
 +
 +
<nowiki>wget https://github.com/adafruit/PiTFT_Extras/raw/master/xstroke.desktop
 +
wget https://github.com/adafruit/PiTFT_Extras/raw/master/xstrokekill.desktop
 +
sudo cp xstroke*.desktop /usr/share/applications/</nowiki>
 +
 +
== Utiliser ==
 +
To use xstroke I highly recommend using a plastic stylus instead of your finger. Also calibrate the touchscreen for X-Windows so you have the best control over the cursor possible.
    
{{RASP-PiTFT-TRAILER}}
 
{{RASP-PiTFT-TRAILER}}
29 917

modifications

Menu de navigation