Configuration d'un gamepad, joypad ou joystick

hotkey faut tous parametre soit meme et pas laissé linux faire c pas windows la…

Ah d’accord, tu as le nouveau Claw…fallait le dire, sur la photo que t’as mise c’est l’ancien, la version PS/2…(J’ai pas ce truc, moi, je connais pas)

Sur le site web constructeur y’a un lien mort vers des drivers linux: http://www.claw.com.au/software.html

Donc il y en a quelquepart. Le site a dû être déplacé ou quelquechose. Cherche un peu, ils doivent exister quelquepart.

edit: http://www.dragoninc.on.ca/mail-archives/linux-usb/2002-02/0268.html
apparament, il s’agit bien d’un joypad. Le mien est sur /dev/js0

essaie de faire (en root) des cat /dev/x et appuie sur les boutons du claw. si du “garbage” apparait, c’est le bon!
remplace x par js0, js1 etc.

Je ne connaissait pas ce site et je ne savais pas qu’il existait en PS/2…
Merci, super les gars, grâce à vous je reprends espoir…

Je vais essayé d’écrire à tous les contacts sur ce site.

Mais maintenant, je dois aller au travail…
Dès que j’ai des nouvelles, je vous en fait part !

M E R C I

Voila j’ai des nouvelles :
Je me suis fait envoyé les drivers pour LINUX
(clawconfig-0.2.tar.gz)
Le gars m’a dit qu’il datait d’environ 1,5 an et qu’ils fonctionnent bien avec un noyau 2.4 et qu’il n’a pas essayé avec d’autres…
L’installation n’a pas l’air difficile :

Installation of this project should be pretty easy. You’ll need the QT3 dev
stuff installed to compile against as well as Xlib stuff for handling the
raw X11 keyboard events.

As root, you should be able to just run ./buildit.sh which will compile
ClawConfig and Claw Translator and install the executables in /usr/local/bin
and any distributed button profiles into /etc/ClawConfig.

If anybody wants to build RPM’s or .deb’s (or any other kind of package for
that matter) of this software, feel free. Please either send me the
packages to post on my site or let me know where I can link to from my site
for people to download them.

TERSE INSTRUCTIONS FOR THE IMPATIENT/ILLITERATE:

  1. Untar the tarball.
  2. Move into that directory.
  3. Run ./buildit.sh as root.
  4. Remove /usr/local/bin/Claw_Config if it exists.

NOTE:
If you’re compiling QT3 from source, you may need to go into
$QTDIR/extensions/xt/src and do a ‘make’ to build libqxt.so. QT’s Xt
extension is required.

Also, the executable name has changed in this version from ‘Claw_Config’ to
‘ClawConfig’. Please delete the old executable in /usr/local/bin.

Mais sous ma Debian SID 2.6.9 j’ai le message suivant :

lsi:/opt/ClawConfig# ./build_it.sh

rm: ne peut enlever Makefile': Aucun fichier ou répertoire de ce type ./build_it.sh: line 3: qmake: command not found make: *** Pas de règle pour fabriquer la cible « clean ». Arrêt. make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt. make: *** Pas de règle pour fabriquer la cible « install ». Arrêt. /bin/rm -f *.o claw_translator cc -I/usr/X11R6/include -Wall -ggdb -L/usr/X11R6/lib -lX11 -lXtst -o claw_translator claw_translator.c claw_translator.c:38:34: X11/extensions/XTest.h : Aucun fichier ou répertoire de ce type claw_translator.c: Dans la fonction « getXDisplay »: claw_translator.c:231: attention : implicit declaration of functionXTestQueryExtension’
claw_translator.c: Dans la fonction « doXKey »:
claw_translator.c:300: attention : implicit declaration of function `XTestFakeKeyEvent’
make: *** [default] Erreur 1
lsi:/opt/ClawConfig#

On dirait qu’il me manque qmake ?
Mais je ne trouve pas le paquetage ?
Es-ce que quelqu’un connait bien ?

Je peux vous envoyer avec plaisir les drivers si vous m’envoyé votre email !

Merci

euh excusez-moi…
j’avais oublié d’installer qt3-dev…
A+

Ouh là il me faut l’aide d’un surdoué !!

Es-ce que quelqu’un peut m’aider ??
(Je peux aussi lui envoyé les drivers)

lsi:/opt/ClawConfig# ./build_it.sh

rm -f .obj/moc_clawkeys.o .obj/moc_clawconfig_main.o .obj/moc_assignkeys.o .obj/moc_insert_pause.o .obj/moc_button_mode.o .obj/moc_splash.o .obj/moc_launcher.o .obj/moc_game_entry.o .obj/moc_launcher_restart.o
rm -f .moc/moc_clawkeys.cpp .moc/moc_clawconfig_main.cpp .moc/moc_assignkeys.cpp .moc/moc_insert_pause.cpp .moc/moc_button_mode.cpp .moc/moc_splash.cpp .moc/moc_launcher.cpp .moc/moc_game_entry.cpp .moc/moc_launcher_restart.cpp
rm -f .ui/clawconfig_main.cpp .ui/assignkeys.cpp .ui/insert_pause.cpp .ui/button_mode.cpp .ui/splash.cpp .ui/launcher.cpp .ui/game_entry.cpp .ui/launcher_restart.cpp .ui/clawconfig_main.h .ui/assignkeys.h .ui/insert_pause.h .ui/button_mode.h .ui/splash.h .ui/launcher.h .ui/game_entry.h .ui/launcher_restart.h
rm -f .obj/main.o .obj/clawkeys.o .obj/clawconfig_main.o .obj/assignkeys.o .obj/insert_pause.o .obj/button_mode.o .obj/splash.o .obj/launcher.o .obj/game_entry.o .obj/launcher_restart.o .obj/qmake_image_collection.o
rm -f .ui/qmake_image_collection.cpp
rm -f ~ core .core
/usr/share/qt3/bin/uic clawconfig_main.ui -o .ui/clawconfig_main.h
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
/usr/share/qt3/bin/uic assignkeys.ui -o .ui/assignkeys.h
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
/usr/share/qt3/bin/uic insert_pause.ui -o .ui/insert_pause.h
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
/usr/share/qt3/bin/uic button_mode.ui -o .ui/button_mode.h
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
/usr/share/qt3/bin/uic splash.ui -o .ui/splash.h
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
/usr/share/qt3/bin/uic launcher.ui -o .ui/launcher.h
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
/usr/share/qt3/bin/uic game_entry.ui -o .ui/game_entry.h
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
/usr/share/qt3/bin/uic launcher_restart.ui -o .ui/launcher_restart.h
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
g++ -c -pipe -Wall -W -g -DQT_SHARED -DQT_NO_DEBUG -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -I/usr/X11R6/include -I.ui/ -I. -I.moc/ -o .obj/main.o main.cpp
main.cpp:24:17: qxt.h : Aucun fichier ou répertoire de ce type
main.cpp: Dans function « int main(int, char
) »:
main.cpp:54: attention : passing NULL used for non-pointer converting 1 of virtual int QFile::putch(int)' main.cpp:57: error:QXtApplication’ undeclared (first use this function)
main.cpp:57: error: (Each undeclared identifier is reported only once for each
function it appears in.)
main.cpp:57: error: erreur d’analyse syntaxique before (' token main.cpp:66: error:a’ undeclared (first use this function)
main.cpp:46: attention : unused parameter int argc' main.cpp:46: attention : unused parametercharargv’
make: *** [.obj/main.o] Erreur 1
g++ -c -pipe -Wall -W -g -DQT_SHARED -DQT_NO_DEBUG -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -I/usr/X11R6/include -I.ui/ -I. -I.moc/ -o .obj/main.o main.cpp
main.cpp:24:17: qxt.h : Aucun fichier ou répertoire de ce type
main.cpp: Dans function « int main(int, char
) »:
main.cpp:54: attention : passing NULL used for non-pointer converting 1 of virtual int QFile::putch(int)' main.cpp:57: error:QXtApplication’ undeclared (first use this function)
main.cpp:57: error: (Each undeclared identifier is reported only once for each
function it appears in.)
main.cpp:57: error: erreur d’analyse syntaxique before (' token main.cpp:66: error:a’ undeclared (first use this function)
main.cpp:46: attention : unused parameter int argc' main.cpp:46: attention : unused parameterchar**argv’
make: *** [.obj/main.o] Erreur 1
/bin/rm -f *.o claw_translator
cc -I/usr/X11R6/include -Wall -ggdb -L/usr/X11R6/lib -lX11 -lXtst -o claw_translator claw_translator.c
claw_translator.c:38:34: X11/extensions/XTest.h : Aucun fichier ou répertoire de ce type
claw_translator.c: Dans la fonction « getXDisplay »:
claw_translator.c:231: attention : implicit declaration of function XTestQueryExtension' claw_translator.c: Dans la fonction « doXKey »: claw_translator.c:300: attention : implicit declaration of functionXTestFakeKeyEvent’
make: *** [default] Erreur 1
lsi:/opt/ClawConfig#

AAAAA L’AAAAAAAAAAIIIIIIIIIDDDDDDDDDDEEEEEEEEE !!!

Ca a pas l’air de marcher ce truc…

Je crois que ton claw est sur /dev/input/event1.

Alors fais (en root) un cat /dev/input/event1
Ensuite appuie sur les boutons. Si du “caca” :smiley: apparaît, c’est le bon périphérique. Alors tu fais un link (avec ln, comme vu plus haut), puis tu utilises qjoypad pour les combinaisons de touches.

Yeeeaaaaaaaaahhhhhhhhhh !!!
Tu es un génie !!!

Tu as raison, quand je fais un cat /dev/input/event1 et que j’appuie sur les boutons :

B2¦ ôø
B€ ôø
B—9 ôø
B¶! ôø
BÆ!6 ôø
B└ž öø öø
B≥ž9 öø
BW@ øøø
B␍@6 øø
B—S øø
B«S 6 øø
B⎼Ü ùøùø
B€Ü9 ùø
BïP úø
┌⎽␋:/␤⎺└␊/┘▒␌┐▒┌#
┌⎽␋:/␤⎺└␊/┘▒␌┐▒┌#

…il est détecté. Enfin…
Mais pour le link ça me donne ça :

ln /dev/input/event1 /dev/js0/

ln: accès de `/dev/js0//event1’: N’est pas un répertoire

Euh, tu peux encore m’aider ?

Hééé tu me flattes là…:smiley:

pour le link tu fais:

su
ln /dev/input/event1 /dev/js0

t’as mis trop de “/”, c’est pour ça que c’est pas passé.

Ah mince il existe déjà…
Es-ce que j’ose l’effacer ?

ln /dev/input/event1 /dev/js0

ln: `/dev/js0’: fichier existant.

non, pas de problème.

js0 correspond à un joystick de toutes façons

C’est pas encore bon…
J’ai pris qjoypad en .deb => va pas
Ensuite le .tar.gz et là j’ai cette erreur :
$ su
Password:

cd /usr/local/qjoypad-3.4/src

lsi:/usr/local/qjoypad-3.4/src# make

g++ -c -pipe -Wall -W -O2 -DDEVDIR=’"/dev/input"’ -DICON24=’"/usr/local/share/pixmaps/qjoypad/icon24.png"’ -DICON64=’"/usr/local/share/pixmaps/qjoypad/icon64.png"’ -DQT_NO_DEBUG -DQT_SHARED -I/usr/share/qt3/mkspecs/default -I. -I. -Itrayicon -I…/…/…/include/qt3 -o axis.o axis.cpp
Dans le fichier inclus à partir de component.h:13,
à partir de axis.h:8,
à partir de axis.cpp:1:
event.h:5:34: X11/extensions/XTest.h : Aucun fichier ou répertoire de ce type
make: *** [axis.o] Erreur 1
lsi:/usr/local/qjoypad-3.4/src#

Enfin bon ça avance…

Apparament le .deb actuel est bousillé.

utilise alien avec le .rpm:

alien x.rpm

ensuite t’installes le .deb résultant

J’ai converti le.rpm => va pas
Aussi le slackware .tgz => va pas non plus

Mais c’est bizzare…
Es-ce que chez quelqu’un le qjoypad fonctionne ?

Ah mince alors, si près du but…
Je dois absolumment convertir ces signaux !

J’ai jamais vu un truc pareil…ils sont tous kaput! :lol:

Tiens, celui-là marche:
http://ftp.citkit.ru/pub/sourceforge/q/qj/qjoypad/qjoypad_3.4-1_i386.deb

Si ça marche pas avec Qjoypad, il te reste le suicide :smiley:

Je crois que je me suis trompé, ils marchent tous…
En fait avec ma Debian 2.6.9, je n’ai pas l’icône qui vient sur le bureau…
Par contre sur mon vieil ordi (600 Mhz) avec Debian 2.4.27, j’ai l’icône sur le bureau…

Je ne vais quand même pas remettre le noyau 2.4 pour qjoypad !
Je vais étudier ça…
En attendant si quelqu’un connais le problème…

En tout cas déjà un grand M E R C I pour cette avancé.

T’es vraiment super sympa !

Chez moi avec ma 2.6.10 Qjoypad n’avait pas d’icône…il se plaçait dans le docker sous forme de blanc. Un clic-droit dessus ramène un menu.

T’utilises quoi comme WM? KDE? Gnome?

J’utilise Gnome…
Mais j’ai aussi essaye sous KDE… rien non plus…

ben alors lance qjoypad comme ça:

qjoypad --notray

il apparaîtra sous forme d’une p’tite fenêtre

Oui c’est juste et clic droit sur la fenêtre :

j’ai un menu : Joysticks: 1
Update layout list
Update joystick devices
[NO LAYOUT]
Quit

Et si je clique sur les menus (sauf Quit), rien ne se passe…

Ca vient, ça vient…