Différences entre versions de « RASP-PiTFT-Gesture »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
(Page créée avec « {{RASP-PiTFT-NAV}} {{bloc-etroit|text=With the PiTFT touchscreen and [http://cworth.org/~cworth/papers/xstroke/ xstroke] you can enter text in applications by drawing simple... »)
 
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}}

Version du 21 septembre 2014 à 09:24


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

Introduction

With the PiTFT touchscreen and xstroke you can enter text in applications by drawing simple character gestures on the screen!

Cette technique d'entrée par geste est appelée "Gesture Input" en Français.

Check out the video below for a short demonstration and overview of gesture input with xstroke (Vidéo par Tony DiCola, anglais):

{{#Widget:Iframe |url=http://www.youtube.com/embed/k8NW-1QFjBU |width=420 |height=315 |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 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:

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

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:

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/

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.


Source: Adafruit PiTFT - 2.8" Touchscreen Display for Raspberry Pi
Créé par LadyAda pour AdaFruit Industries.
Augmenté par Meurisse D. pour MCHobby

Traduction réalisée par Meurisse D pour MCHobby.be.

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com