[ RB7 + XU4 + IPAC2 ] Configuration
-
-
@Garden-Dwarf Ton ipac2 ultimarc est reconnu comme un joystick
/dev/input/by-id/usb-Ultimarc_I-PAC_2_Ultimarc_I-PAC_2-event-kbd
Found 1 joystick(s) Joystick Name: 'Ultimarc Ultimarc' Joystick Path: '/dev/input/event3' Joystick GUID: 0300000009d200000216000011010000 Joystick Number: 0 Number of Axes: 2 Number of Buttons: 8 Number of Hats: 0 Number of B***s: 0 GameControllerConfig: missing (see 'gamecontrollerdb.txt' or SDL_GAMECONTROLLERCONFIG) Axis code 0: 0 Axis code 1: 1 Button code 0: 288 Button code 1: 289 Button code 2: 290 Button code 3: 291 Button code 4: 292 Button code 5: 293 Button code 6: 294 Button code 7: 295
d'après la page
https://recalbox.gitbook.io/tutorials/usb-encoders/recalbox-for-your-usb-keyboard-encoderil faut créer un fichier
/recalbox/share_init/system/configs/xarcade2jstick/usb-Ultimarc_I-PAC_2_Ultimarc_I-PAC_2-event-kbd
dans sont répertoire tu as déjà
usb-Ultimarc_IPAC_2_Ultimarc_IPAC_2_9-if01-event-kbd
etusb-Ultimarc_I-PAC_Ultimarc_I-PAC-event-kbd
effaces les et crée le fichiertouch /recalbox/share_init/system/configs/xarcade2jstick/usb-Ultimarc_I-PAC_2_Ultimarc_I-PAC_2-event-kbd
si ça marche pas essaie avec les autres dans la liste suivantes
/dev/input/by-id/usb-Ultimarc_Ultimarc_7-if01-joystick /dev/input/by-id/usb-Ultimarc_Ultimarc_7-if01-event-joystick
lis bien il est possible que tu doives faire plusieurs tests
NOTE : Un seul encodeur peut avoir plusieurs noms possibles, alors essayez-les tous par exemple : usb-Cypress_I-PAC_Arcade_Control_Interface-event-kbd -> fonctionne usb-Cypress_I-PAC_Arcade_Control_Interface-if01-event-kbd -> ne fonctionne pas
-
@ian57, merci pour ton retour.
Comme j'ai indiqué plus haut, attention car j'ai deux lightguns. Est-ce que les références Ultimarc ne seraient pas celles des guns?
Je vais regarder ce soir de toute façon, mais je ne suis pas sûr que mon IPAC-2 soit configuré comme joystick car j'ai lu quelque part qu'en configurant celui-ci comme joystick on ne pouvait pas avoir 2 joueurs (1 seulement). Or mon IPAC-2, si je le branche sur mon RPI3b (Recalbox 4.1 je crois) me permet bien de jouer à 2.
-
Dans le répertoire xarcade2jstick j'ai ceci
# ls /recalbox/share_init/system/configs/xarcade2jstick/ usb-Ultimarc_I-PAC_2_Ultimarc_I-PAC_2-event-kbd usb-Ultimarc_I-PAC_Ultimarc_I-PAC-event-kbd usb-Ultimarc_IPAC_2_Ultimarc_IPAC_2_9-if01-event-kbd #
Je les efface tous les 3
# mount -o rw,remount / # rm /recalbox/share_init/system/configs/xarcade2jstick/usb* # ls /recalbox/share_init/system/configs/xarcade2jstick/ #
Je crée le fichier usb-Ultimarc_I-PAC_2_Ultimarc_I-PAC_2-event-kbd
# touch /recalbox/share_init/system/configs/xarcade2jstick/usb-Ultimarc_I-PAC_2_Ultimarc_I-PAC_2-event-kbd
... et je reboot (ce n'était pas indiqué, donc dans le doute je le fais ^^)
# reboot
Comme avant, certaines touches fonctionnes (menu ES, stick haut/bas, sélection) mais pas moyen de reconfigurer.
Donc j'essaye le suivant de la liste (usb-Ultimarc_Ultimarc_7-if01-joystick)# mount -o rw,remount / # rm /recalbox/share_init/system/configs/xarcade2jstick/usb* # touch /recalbox/share_init/system/configs/xarcade2jstick/usb-Ultimarc_Ultimarc_7-if01-joystick # reboot
Et ... pareil. En route pour la troisième option (usb-Ultimarc_Ultimarc_7-if01-event-joystick)
# mount -o rw,remount / # rm /recalbox/share_init/system/configs/xarcade2jstick/usb* # touch /recalbox/share_init/system/configs/xarcade2jstick/usb-Ultimarc_Ultimarc_7-if01-event-joystick # reboot
Je n'ai observé aucun changement. Toujours 1 manette détectée, quelques touches qui fonctionnent, mais impossible de les remapper.
-
Hello,
d'après ce que je comprends ton xarcade est bien configuré par le système car le fichier usb-Ultimarc_I-PAC_2_Ultimarc_I-PAC_2-event-kbd semble présent.
Peux tu tester la chose suivante :
# mount -o rw,remount / # rm /recalbox/share_init/system/configs/xarcade2jstick/usb* # reboot
et me dire ce qu'il y a dans le répertoire recalbox/share_init/system/configs/xarcade2jstick/ sans rien faire stp?
après il faudrait utiliser sdl2-jstest pour tester les differents "device" opur voir comment ils repondent. Cela se fait en ssh :
sdl2-jstest --list
pour lister les périphériques utilisables
ensuitesdl2-jstest --test 0
pour tester le premier périphérique
-
@ian57, j'essaye ça ce soir.
En attendant, j'ai une petite question.
Dans es_input.cfg chaque event (joystick, touche...) est indiqué avec un code. Est-ce que tu peux me dire d'où vient ce code et si il y a un outil en ligne de commande qui permet d'indiquer le code quand un évènement est détecté ?
J'ai déjà essayé quelques commandes (entre autres sdl2-jstest) mais le code indiqué ne correspond pas à celui indiqué dans es_input.cfg. -
@Garden-Dwarf il s'agit des codes des touches clavier cf : https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h
de notre coté on a patché ces codes pour améliorer avec mame cf : https://gitlab.com/recalbox/recalbox/-/blob/master/package/xarcade2jstick/0001-b*mp-xarcade-and-integrate-keybd-mame-patchs.patch
normalement, le fait de configurer ton xarcade va générer une section dans le es_input avec les codes renvoyé par le xarcade
c'est pour cela que je voudrais voir si toute les touches du xarcade son détectée par sdl2-jstest
-
Manipulation faite (rm puis reboot). Après redémarrage, le répertoire est vide.
Ensuite sdl2-jstest me donne ceci :
# sdl2-jstest --list error: failed to read gamecontrollerdb.txt: Invalid RWops Found 1 joystick(s) Joystick Name: 'Ultimarc Ultimarc' Joystick Path: '/dev/input/event3' Joystick GUID: 0300000009d200000216000011010000 Joystick Number: 0 Number of Axes: 2 Number of Buttons: 8 Number of Hats: 0 Number of B***s: 0 GameControllerConfig: missing (see 'gamecontrollerdb.txt' or SDL_GAMECONTROLLERCONFIG) Axis code 0: 0 Axis code 1: 1 Button code 0: 288 Button code 1: 289 Button code 2: 290 Button code 3: 291 Button code 4: 292 Button code 5: 293 Button code 6: 294 Button code 7: 295
Où est-ce que je vois les devices que je peux tester ?
-
@ian57 Bon, je viens d'essayer avec le device 0.
Je lance :
Joystick Name: 'Ultimarc Ultimarc' Joystick Number: 0 Axes 2: 0: -32768 [# ] 1: -32768 [# ] Buttons 8: 0: 0 [ ] 1: 0 [ ] 2: 0 [ ] 3: 0 [ ] 4: 0 [ ] 5: 0 [ ] 6: 0 [ ] 7: 0 [ ] Hats 0: B***s 0: Press Ctrl-c to exit
Et ensuite j'appuye sur quelques boutons du joueur 1 :
Error: Unhandled event type: 768 Error: Unhandled event type: 769 Error: Unhandled event type: 768 Error: Unhandled event type: 769 Error: Unhandled event type: 768 Error: Unhandled event type: 771 Error: Unhandled event type: 769 Error: Unhandled event type: 768 Error: Unhandled event type: 769 Error: Unhandled event type: 768 Error: Unhandled event type: 771 Error: Unhandled event type: 769 Error: Unhandled event type: 768 Error: Unhandled event type: 771 Error: Unhandled event type: 769 Error: Unhandled event type: 768 Error: Unhandled event type: 771 Error: Unhandled event type: 769
-
@Garden-Dwarf bon du coup il fait bien créer le fichier /recalbox/share_init/system/configs/xarcade2jstick/usb-Ultimarc_I-PAC_2_Ultimarc_I-PAC_2-event-kbd à la main
normalement ensuite sdl2-jstest devrait trouver 2 périphériques. Il faut ensuite tester celui correspondant au clavier I-PAC_2-event-kbd
peux tu faire les tests?
dans ton second post on voit bien que la version Joystick détectée ne prends pas en compte les touches
-
J'ai fait le test hier soir (touch sur le fichier), c'est pareil. Je peux re-vérifier en rentrant ce soir, mais j'en suis presque sûr.
De toute façon j'ai bien des boutons qui fonctionnent puisque j'arrive à en utiliser dans ES (encore une fois mon problème est que les boutons ne sont pas mappés correctement ou à la bonne place).Par contre j'ai lancé evtest et sélectionné mon IPAC2 et quand j'appuye sur des touches ça me donne bien un retour (event + code appui quand j'enfonce un bouton, event + code quand je le relâche).
-
@Garden-Dwarf hmmm ça va être compliqué de déb****r ça sans le matos... j'ai l'impression qu'in a un soucis avec sdl2-jstest.
Peux tu me fournir la sortie d'evtest pour usb-Ultimarc_I-PAC_2_Ultimarc_I-PAC_2-event-kbd et pour la version joystick stp ?
-
Bon, j'ai essayé d'être aussi complet que possible.
Tout d'abord une photo vue du dessus de mon board (il y a un brin de poussière, désolé ^^).
J'ai donc une touche "game", "shift", "volume -" et "volume +", "select player 1" et "select player 2", ainsi que pour chacun des deux joueurs un joystick et 8 boutons. Le tout connecté à un IPAC-2, lui-même relié à un Odroid XU4 (ou un RPI3b qui fonctionne très bien mais ce n'est pas le sujet).
Voici ce que j'ai au lancement de evtest:
# evtest No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: gpio_keys /dev/input/event1: C-Media Electronics Inc. USB Audio Device /dev/input/event2: Ultimarc Ultimarc /dev/input/event3: ADS7846 Touchscreen /dev/input/event4: Ultimarc Ultimarc /dev/input/event5: Ultimarc Ultimarc /dev/input/event6: Ultimarc I-PAC 2 Ultimarc I-PAC 2 /dev/input/event7: Dell Dell USB Keyboard Select the device event number [0-7]: 6 Input driver version is 1.0.1 Input device ID: bus 0x3 vendor 0xd209 product 0x301 version 0x111 Input device name: "Ultimarc I-PAC 2 Ultimarc I-PAC 2" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 1 (KEY_ESC) Event code 2 (KEY_1) Event code 3 (KEY_2) Event code 4 (KEY_3) Event code 5 (KEY_4) Event code 6 (KEY_5) Event code 7 (KEY_6) Event code 8 (KEY_7) Event code 9 (KEY_8) Event code 10 (KEY_9) Event code 11 (KEY_0) Event code 12 (KEY_MINUS) Event code 13 (KEY_EQUAL) Event code 14 (KEY_BACKSPACE) Event code 15 (KEY_TAB) Event code 16 (KEY_Q) Event code 17 (KEY_W) Event code 18 (KEY_E) Event code 19 (KEY_R) Event code 20 (KEY_T) Event code 21 (KEY_Y) Event code 22 (KEY_U) Event code 23 (KEY_I) Event code 24 (KEY_O) Event code 25 (KEY_P) Event code 26 (KEY_LEFTBRACE) Event code 27 (KEY_RIGHTBRACE) Event code 28 (KEY_ENTER) Event code 29 (KEY_LEFTCTRL) Event code 30 (KEY_A) Event code 31 (KEY_S) Event code 32 (KEY_D) Event code 33 (KEY_F) Event code 34 (KEY_G) Event code 35 (KEY_H) Event code 36 (KEY_J) Event code 37 (KEY_K) Event code 38 (KEY_L) Event code 39 (KEY_SEMICOLON) Event code 40 (KEY_APOSTROPHE) Event code 41 (KEY_GRAVE) Event code 42 (KEY_LEFTSHIFT) Event code 43 (KEY_BACKSLASH) Event code 44 (KEY_Z) Event code 45 (KEY_X) Event code 46 (KEY_C) Event code 47 (KEY_V) Event code 48 (KEY_B) Event code 49 (KEY_N) Event code 50 (KEY_M) Event code 51 (KEY_COMMA) Event code 52 (KEY_DOT) Event code 53 (KEY_SLASH) Event code 54 (KEY_RIGHTSHIFT) Event code 55 (KEY_KPASTERISK) Event code 56 (KEY_LEFTALT) Event code 57 (KEY_SPACE) Event code 58 (KEY_CAPSLOCK) Event code 59 (KEY_F1) Event code 60 (KEY_F2) Event code 61 (KEY_F3) Event code 62 (KEY_F4) Event code 63 (KEY_F5) Event code 64 (KEY_F6) Event code 65 (KEY_F7) Event code 66 (KEY_F8) Event code 67 (KEY_F9) Event code 68 (KEY_F10) Event code 69 (KEY_NUMLOCK) Event code 70 (KEY_SCROLLLOCK) Event code 71 (KEY_KP7) Event code 72 (KEY_KP8) Event code 73 (KEY_KP9) Event code 74 (KEY_KPMINUS) Event code 75 (KEY_KP4) Event code 76 (KEY_KP5) Event code 77 (KEY_KP6) Event code 78 (KEY_KPPLUS) Event code 79 (KEY_KP1) Event code 80 (KEY_KP2) Event code 81 (KEY_KP3) Event code 82 (KEY_KP0) Event code 83 (KEY_KPDOT) Event code 86 (KEY_102ND) Event code 87 (KEY_F11) Event code 88 (KEY_F12) Event code 96 (KEY_KPENTER) Event code 97 (KEY_RIGHTCTRL) Event code 98 (KEY_KPSLASH) Event code 99 (KEY_SYSRQ) Event code 100 (KEY_RIGHTALT) Event code 102 (KEY_HOME) Event code 103 (KEY_UP) Event code 104 (KEY_PAGEUP) Event code 105 (KEY_LEFT) Event code 106 (KEY_RIGHT) Event code 107 (KEY_END) Event code 108 (KEY_DOWN) Event code 109 (KEY_PAGEDOWN) Event code 110 (KEY_INSERT) Event code 111 (KEY_DELETE) Event code 119 (KEY_PAUSE) Event code 125 (KEY_LEFTMETA) Event code 126 (KEY_RIGHTMETA) Event code 127 (KEY_COMPOSE) Event type 4 (EV_MSC) Event code 4 (MSC_SCAN) Event type 17 (EV_LED) Event code 0 (LED_NUML) state 0 Event code 1 (LED_CAPSL) state 0 Event code 2 (LED_SCROLLL) state 0 Event code 3 (LED_COMPOSE) state 0 Event code 4 (LED_KANA) state 0 Key repeat handling: Repeat type 20 (EV_REP) Repeat code 0 (REP_DELAY) Value 250 Repeat code 1 (REP_PERIOD) Value 33 Properties: Testing ... (interrupt to exit)
Ensuite j'ai appuyé un à un sur toutes les touches (et directions pour les joysticks). L'outil evtest m'a donné un output, que j'ai découpé pour indiquer quel événement correspond à chaque bouton/joystick de mon board.
Game: Event: time 1602867195.836506, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70028 Event: time 1602867195.836506, type 1 (EV_KEY), code 28 (KEY_ENTER), value 1 Event: time 1602867195.836506, -------------- SYN_REPORT ------------ Event: time 1602867196.016502, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70028 Event: time 1602867196.016502, type 1 (EV_KEY), code 28 (KEY_ENTER), value 0 Event: time 1602867196.016502, -------------- SYN_REPORT ------------ Shift: Event: time 1602867198.012503, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70013 Event: time 1602867198.012503, type 1 (EV_KEY), code 25 (KEY_P), value 1 Event: time 1602867198.012503, -------------- SYN_REPORT ------------ Event: time 1602867198.236495, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70013 Event: time 1602867198.236495, type 1 (EV_KEY), code 25 (KEY_P), value 0 Event: time 1602867198.236495, -------------- SYN_REPORT ------------ Volume down: Event: time 1602867199.948497, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002d Event: time 1602867199.948497, type 1 (EV_KEY), code 12 (KEY_MINUS), value 1 Event: time 1602867199.948497, -------------- SYN_REPORT ------------ Event: time 1602867200.144489, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002d Event: time 1602867200.144489, type 1 (EV_KEY), code 12 (KEY_MINUS), value 0 Event: time 1602867200.144489, -------------- SYN_REPORT ------------ Volume up: Event: time 1602867200.868493, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002e Event: time 1602867200.868493, type 1 (EV_KEY), code 13 (KEY_EQUAL), value 1 Event: time 1602867200.868493, -------------- SYN_REPORT ------------ Event: time 1602867201.072492, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002e Event: time 1602867201.072492, type 1 (EV_KEY), code 13 (KEY_EQUAL), value 0 Event: time 1602867201.072492, -------------- SYN_REPORT ------------ Select player 1: Event: time 1602867201.884490, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001e Event: time 1602867201.884490, type 1 (EV_KEY), code 2 (KEY_1), value 1 Event: time 1602867201.884490, -------------- SYN_REPORT ------------ Event: time 1602867202.096484, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001e Event: time 1602867202.096484, type 1 (EV_KEY), code 2 (KEY_1), value 0 Event: time 1602867202.096484, -------------- SYN_REPORT ------------ Select player 2: Event: time 1602867202.788485, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001f Event: time 1602867202.788485, type 1 (EV_KEY), code 3 (KEY_2), value 1 Event: time 1602867202.788485, -------------- SYN_REPORT ------------ Event: time 1602867203.028481, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001f Event: time 1602867203.028481, type 1 (EV_KEY), code 3 (KEY_2), value 0 Event: time 1602867203.028481, -------------- SYN_REPORT ------------ Player 1 - Joystick up: Event: time 1602866642.150741, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70052 Event: time 1602866642.150741, type 1 (EV_KEY), code 103 (KEY_UP), value 1 Event: time 1602866642.150741, -------------- SYN_REPORT ------------ Event: time 1602866642.334743, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70052 Event: time 1602866642.334743, type 1 (EV_KEY), code 103 (KEY_UP), value 0 Event: time 1602866642.334743, -------------- SYN_REPORT ------------ Player 1 - Joystick down: Event: time 1602866643.390745, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70051 Event: time 1602866643.390745, type 1 (EV_KEY), code 108 (KEY_DOWN), value 1 Event: time 1602866643.390745, -------------- SYN_REPORT ------------ Event: time 1602866643.602733, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70051 Event: time 1602866643.602733, type 1 (EV_KEY), code 108 (KEY_DOWN), value 0 Event: time 1602866643.602733, -------------- SYN_REPORT ------------ Player 1 - Joystick left: Event: time 1602866645.002731, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70050 Event: time 1602866645.002731, type 1 (EV_KEY), code 105 (KEY_LEFT), value 1 Event: time 1602866645.002731, -------------- SYN_REPORT ------------ Event: time 1602866645.226725, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70050 Event: time 1602866645.226725, type 1 (EV_KEY), code 105 (KEY_LEFT), value 0 Event: time 1602866645.226725, -------------- SYN_REPORT ------------ Player 1 - Joystick right: Event: time 1602866646.370731, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7004f Event: time 1602866646.370731, type 1 (EV_KEY), code 106 (KEY_RIGHT), value 1 Event: time 1602866646.370731, -------------- SYN_REPORT ------------ Event: time 1602866646.542721, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7004f Event: time 1602866646.542721, type 1 (EV_KEY), code 106 (KEY_RIGHT), value 0 Event: time 1602866646.542721, -------------- SYN_REPORT ------------ Player 1 - button 1: Event: time 1602866340.211744, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0 Event: time 1602866340.211744, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1 Event: time 1602866340.211744, -------------- SYN_REPORT ------------ Event: time 1602866340.339740, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0 Event: time 1602866340.339740, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 0 Event: time 1602866340.339740, -------------- SYN_REPORT ------------ Player 1 - button 2: Event: time 1602866340.887739, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e2 Event: time 1602866340.887739, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 1 Event: time 1602866340.887739, -------------- SYN_REPORT ------------ Event: time 1602866341.003737, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e2 Event: time 1602866341.003737, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 0 Event: time 1602866341.003737, -------------- SYN_REPORT ------------ Player 1 - button 3: Event: time 1602866341.511742, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002c Event: time 1602866341.511742, type 1 (EV_KEY), code 57 (KEY_SPACE), value 1 Event: time 1602866341.511742, -------------- SYN_REPORT ------------ Event: time 1602866341.655735, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002c Event: time 1602866341.655735, type 1 (EV_KEY), code 57 (KEY_SPACE), value 0 Event: time 1602866341.655735, -------------- SYN_REPORT ------------ Player 1 - button 4: Event: time 1602866342.183734, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e1 Event: time 1602866342.183734, type 1 (EV_KEY), code 42 (KEY_LEFTSHIFT), value 1 Event: time 1602866342.183734, -------------- SYN_REPORT ------------ Event: time 1602866342.291729, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e1 Event: time 1602866342.291729, type 1 (EV_KEY), code 42 (KEY_LEFTSHIFT), value 0 Event: time 1602866342.291729, -------------- SYN_REPORT ------------ Player 1 - button 5: (not working?) Player 1 - button 6: Event: time 1602866513.331106, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001b Event: time 1602866513.331106, type 1 (EV_KEY), code 45 (KEY_X), value 1 Event: time 1602866513.331106, -------------- SYN_REPORT ------------ Event: time 1602866513.471097, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001b Event: time 1602866513.471097, type 1 (EV_KEY), code 45 (KEY_X), value 0 Event: time 1602866513.471097, -------------- SYN_REPORT ------------ Player 1 - button 7: Event: time 1602866514.183102, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70006 Event: time 1602866514.183102, type 1 (EV_KEY), code 46 (KEY_C), value 1 Event: time 1602866514.183102, -------------- SYN_REPORT ------------ Event: time 1602866514.307093, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70006 Event: time 1602866514.307093, type 1 (EV_KEY), code 46 (KEY_C), value 0 Event: time 1602866514.307093, -------------- SYN_REPORT ------------ Player 1 - button 8: Event: time 1602866515.047102, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70019 Event: time 1602866515.047102, type 1 (EV_KEY), code 47 (KEY_V), value 1 Event: time 1602866515.047102, -------------- SYN_REPORT ------------ Event: time 1602866515.147092, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70019 Event: time 1602866515.147092, type 1 (EV_KEY), code 47 (KEY_V), value 0 Event: time 1602866515.147092, -------------- SYN_REPORT ------------ Player 2 - Joystick up: Event: time 1602866812.029980, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70015 Event: time 1602866812.029980, type 1 (EV_KEY), code 19 (KEY_R), value 1 Event: time 1602866812.029980, -------------- SYN_REPORT ------------ Event: time 1602866812.285967, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70015 Event: time 1602866812.285967, type 1 (EV_KEY), code 19 (KEY_R), value 0 Event: time 1602866812.285967, -------------- SYN_REPORT ------------ Player 2 - Joystick down: Event: time 1602866813.053973, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70009 Event: time 1602866813.053973, type 1 (EV_KEY), code 33 (KEY_F), value 1 Event: time 1602866813.053973, -------------- SYN_REPORT ------------ Event: time 1602866813.257973, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70009 Event: time 1602866813.257973, type 1 (EV_KEY), code 33 (KEY_F), value 0 Event: time 1602866813.257973, -------------- SYN_REPORT ------------ Player 2 - Joystick left: Event: time 1602866814.177968, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70007 Event: time 1602866814.177968, type 1 (EV_KEY), code 32 (KEY_D), value 1 Event: time 1602866814.177968, -------------- SYN_REPORT ------------ Event: time 1602866814.413960, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70007 Event: time 1602866814.413960, type 1 (EV_KEY), code 32 (KEY_D), value 0 Event: time 1602866814.413960, -------------- SYN_REPORT ------------ Player 2 - Joystick right: Event: time 1602866815.285963, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000a Event: time 1602866815.285963, type 1 (EV_KEY), code 34 (KEY_G), value 1 Event: time 1602866815.285963, -------------- SYN_REPORT ------------ Event: time 1602866815.437955, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000a Event: time 1602866815.437955, type 1 (EV_KEY), code 34 (KEY_G), value 0 Event: time 1602866815.437955, -------------- SYN_REPORT ------------ Player 2 - Button 1: Event: time 1602866817.413952, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70004 Event: time 1602866817.413952, type 1 (EV_KEY), code 30 (KEY_A), value 1 Event: time 1602866817.413952, -------------- SYN_REPORT ------------ Event: time 1602866817.597957, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70004 Event: time 1602866817.597957, type 1 (EV_KEY), code 30 (KEY_A), value 0 Event: time 1602866817.597957, -------------- SYN_REPORT ------------ Player 2 - Button 2: Event: time 1602866819.449940, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70016 Event: time 1602866819.449940, type 1 (EV_KEY), code 31 (KEY_S), value 1 Event: time 1602866819.449940, -------------- SYN_REPORT ------------ Event: time 1602866819.625941, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70016 Event: time 1602866819.625941, type 1 (EV_KEY), code 31 (KEY_S), value 0 Event: time 1602866819.625941, -------------- SYN_REPORT ------------ Player 2 - Button 3: Event: time 1602866821.081932, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70014 Event: time 1602866821.081932, type 1 (EV_KEY), code 16 (KEY_Q), value 1 Event: time 1602866821.081932, -------------- SYN_REPORT ------------ Event: time 1602866821.181923, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70014 Event: time 1602866821.181923, type 1 (EV_KEY), code 16 (KEY_Q), value 0 Event: time 1602866821.181923, -------------- SYN_REPORT ------------ Player 2 - Button 4: Event: time 1602866822.201933, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001a Event: time 1602866822.201933, type 1 (EV_KEY), code 17 (KEY_W), value 1 Event: time 1602866822.201933, -------------- SYN_REPORT ------------ Event: time 1602866822.329916, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001a Event: time 1602866822.329916, type 1 (EV_KEY), code 17 (KEY_W), value 0 Event: time 1602866822.329916, -------------- SYN_REPORT ------------ Player 2 - Button 5: Event: time 1602866823.333921, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000c Event: time 1602866823.333921, type 1 (EV_KEY), code 23 (KEY_I), value 1 Event: time 1602866823.333921, -------------- SYN_REPORT ------------ Event: time 1602866823.473918, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000c Event: time 1602866823.473918, type 1 (EV_KEY), code 23 (KEY_I), value 0 Event: time 1602866823.473918, -------------- SYN_REPORT ------------ Player 2 - Button 6: Event: time 1602866824.401917, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000d Event: time 1602866824.401917, type 1 (EV_KEY), code 36 (KEY_J), value 1 Event: time 1602866824.401917, -------------- SYN_REPORT ------------ Event: time 1602866824.529909, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000d Event: time 1602866824.529909, type 1 (EV_KEY), code 36 (KEY_J), value 0 Event: time 1602866824.529909, -------------- SYN_REPORT ------------ Player 2 - Button 7: Event: time 1602866825.437909, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000e Event: time 1602866825.437909, type 1 (EV_KEY), code 37 (KEY_K), value 1 Event: time 1602866825.437909, -------------- SYN_REPORT ------------ Event: time 1602866825.589898, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000e Event: time 1602866825.589898, type 1 (EV_KEY), code 37 (KEY_K), value 0 Event: time 1602866825.589898, -------------- SYN_REPORT ------------ Player 2 - Button 8: Event: time 1602866826.557909, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000f Event: time 1602866826.557909, type 1 (EV_KEY), code 38 (KEY_L), value 1 Event: time 1602866826.557909, -------------- SYN_REPORT ------------ Event: time 1602866826.697895, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000f Event: time 1602866826.697895, type 1 (EV_KEY), code 38 (KEY_L), value 0 Event: time 1602866826.697895, -------------- SYN_REPORT ------------
A noter que le bouton 5 du joueur 1 ne donne pas d'event. C'est probablement un souci hardware, j'ai la même chose avec mon RPI3b mais je n'en ai pas eu l'utilité jusqu'ici.
-
This post is deleted! -
Pour le bouton 5 du joueur 1 mentionné ci-dessus il y avait un câble débranché. Et j'ai oublié également les 2 monnayeurs dans les portes de ma borne. Du coup voilà la liste complète des input sur mon IPAC-2 (avec evtest).
Game: Event: time 1602867195.836506, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70028 Event: time 1602867195.836506, type 1 (EV_KEY), code 28 (KEY_ENTER), value 1 Event: time 1602867195.836506, -------------- SYN_REPORT ------------ Event: time 1602867196.016502, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70028 Event: time 1602867196.016502, type 1 (EV_KEY), code 28 (KEY_ENTER), value 0 Event: time 1602867196.016502, -------------- SYN_REPORT ------------ Shift: Event: time 1602867198.012503, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70013 Event: time 1602867198.012503, type 1 (EV_KEY), code 25 (KEY_P), value 1 Event: time 1602867198.012503, -------------- SYN_REPORT ------------ Event: time 1602867198.236495, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70013 Event: time 1602867198.236495, type 1 (EV_KEY), code 25 (KEY_P), value 0 Event: time 1602867198.236495, -------------- SYN_REPORT ------------ Volume down: Event: time 1602867199.948497, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002d Event: time 1602867199.948497, type 1 (EV_KEY), code 12 (KEY_MINUS), value 1 Event: time 1602867199.948497, -------------- SYN_REPORT ------------ Event: time 1602867200.144489, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002d Event: time 1602867200.144489, type 1 (EV_KEY), code 12 (KEY_MINUS), value 0 Event: time 1602867200.144489, -------------- SYN_REPORT ------------ Volume up: Event: time 1602867200.868493, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002e Event: time 1602867200.868493, type 1 (EV_KEY), code 13 (KEY_EQUAL), value 1 Event: time 1602867200.868493, -------------- SYN_REPORT ------------ Event: time 1602867201.072492, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002e Event: time 1602867201.072492, type 1 (EV_KEY), code 13 (KEY_EQUAL), value 0 Event: time 1602867201.072492, -------------- SYN_REPORT ------------ Select player 1: Event: time 1602867201.884490, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001e Event: time 1602867201.884490, type 1 (EV_KEY), code 2 (KEY_1), value 1 Event: time 1602867201.884490, -------------- SYN_REPORT ------------ Event: time 1602867202.096484, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001e Event: time 1602867202.096484, type 1 (EV_KEY), code 2 (KEY_1), value 0 Event: time 1602867202.096484, -------------- SYN_REPORT ------------ Select player 2: Event: time 1602867202.788485, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001f Event: time 1602867202.788485, type 1 (EV_KEY), code 3 (KEY_2), value 1 Event: time 1602867202.788485, -------------- SYN_REPORT ------------ Event: time 1602867203.028481, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001f Event: time 1602867203.028481, type 1 (EV_KEY), code 3 (KEY_2), value 0 Event: time 1602867203.028481, -------------- SYN_REPORT ------------ Coind door 1: Event: time 1602926342.391123, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70022 Event: time 1602926342.391123, type 1 (EV_KEY), code 6 (KEY_5), value 1 Event: time 1602926342.391123, -------------- SYN_REPORT ------------ Event: time 1602926342.443119, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70022 Event: time 1602926342.443119, type 1 (EV_KEY), code 6 (KEY_5), value 0 Event: time 1602926342.443119, -------------- SYN_REPORT ------------ Coind door 2: Event: time 1602926345.383100, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70023 Event: time 1602926345.383100, type 1 (EV_KEY), code 7 (KEY_6), value 1 Event: time 1602926345.383100, -------------- SYN_REPORT ------------ Event: time 1602926345.427085, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70023 Event: time 1602926345.427085, type 1 (EV_KEY), code 7 (KEY_6), value 0 Event: time 1602926345.427085, -------------- SYN_REPORT ------------ Player 1 - Joystick up: Event: time 1602866642.150741, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70052 Event: time 1602866642.150741, type 1 (EV_KEY), code 103 (KEY_UP), value 1 Event: time 1602866642.150741, -------------- SYN_REPORT ------------ Event: time 1602866642.334743, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70052 Event: time 1602866642.334743, type 1 (EV_KEY), code 103 (KEY_UP), value 0 Event: time 1602866642.334743, -------------- SYN_REPORT ------------ Player 1 - Joystick down: Event: time 1602866643.390745, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70051 Event: time 1602866643.390745, type 1 (EV_KEY), code 108 (KEY_DOWN), value 1 Event: time 1602866643.390745, -------------- SYN_REPORT ------------ Event: time 1602866643.602733, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70051 Event: time 1602866643.602733, type 1 (EV_KEY), code 108 (KEY_DOWN), value 0 Event: time 1602866643.602733, -------------- SYN_REPORT ------------ Player 1 - Joystick left: Event: time 1602866645.002731, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70050 Event: time 1602866645.002731, type 1 (EV_KEY), code 105 (KEY_LEFT), value 1 Event: time 1602866645.002731, -------------- SYN_REPORT ------------ Event: time 1602866645.226725, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70050 Event: time 1602866645.226725, type 1 (EV_KEY), code 105 (KEY_LEFT), value 0 Event: time 1602866645.226725, -------------- SYN_REPORT ------------ Player 1 - Joystick right: Event: time 1602866646.370731, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7004f Event: time 1602866646.370731, type 1 (EV_KEY), code 106 (KEY_RIGHT), value 1 Event: time 1602866646.370731, -------------- SYN_REPORT ------------ Event: time 1602866646.542721, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7004f Event: time 1602866646.542721, type 1 (EV_KEY), code 106 (KEY_RIGHT), value 0 Event: time 1602866646.542721, -------------- SYN_REPORT ------------ Player 1 - button 1: Event: time 1602866340.211744, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0 Event: time 1602866340.211744, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1 Event: time 1602866340.211744, -------------- SYN_REPORT ------------ Event: time 1602866340.339740, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0 Event: time 1602866340.339740, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 0 Event: time 1602866340.339740, -------------- SYN_REPORT ------------ Player 1 - button 2: Event: time 1602866340.887739, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e2 Event: time 1602866340.887739, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 1 Event: time 1602866340.887739, -------------- SYN_REPORT ------------ Event: time 1602866341.003737, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e2 Event: time 1602866341.003737, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 0 Event: time 1602866341.003737, -------------- SYN_REPORT ------------ Player 1 - button 3: Event: time 1602866341.511742, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002c Event: time 1602866341.511742, type 1 (EV_KEY), code 57 (KEY_SPACE), value 1 Event: time 1602866341.511742, -------------- SYN_REPORT ------------ Event: time 1602866341.655735, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002c Event: time 1602866341.655735, type 1 (EV_KEY), code 57 (KEY_SPACE), value 0 Event: time 1602866341.655735, -------------- SYN_REPORT ------------ Player 1 - button 4: Event: time 1602866342.183734, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e1 Event: time 1602866342.183734, type 1 (EV_KEY), code 42 (KEY_LEFTSHIFT), value 1 Event: time 1602866342.183734, -------------- SYN_REPORT ------------ Event: time 1602866342.291729, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e1 Event: time 1602866342.291729, type 1 (EV_KEY), code 42 (KEY_LEFTSHIFT), value 0 Event: time 1602866342.291729, -------------- SYN_REPORT ------------ Player 1 - button 5: Event: time 1602925878.095463, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001d Event: time 1602925878.095463, type 1 (EV_KEY), code 44 (KEY_Z), value 1 Event: time 1602925878.095463, -------------- SYN_REPORT ------------ Event: time 1602925878.315454, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001d Event: time 1602925878.315454, type 1 (EV_KEY), code 44 (KEY_Z), value 0 Event: time 1602925878.315454, -------------- SYN_REPORT ------------ Player 1 - button 6: Event: time 1602866513.331106, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001b Event: time 1602866513.331106, type 1 (EV_KEY), code 45 (KEY_X), value 1 Event: time 1602866513.331106, -------------- SYN_REPORT ------------ Event: time 1602866513.471097, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001b Event: time 1602866513.471097, type 1 (EV_KEY), code 45 (KEY_X), value 0 Event: time 1602866513.471097, -------------- SYN_REPORT ------------ Player 1 - button 7: Event: time 1602866514.183102, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70006 Event: time 1602866514.183102, type 1 (EV_KEY), code 46 (KEY_C), value 1 Event: time 1602866514.183102, -------------- SYN_REPORT ------------ Event: time 1602866514.307093, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70006 Event: time 1602866514.307093, type 1 (EV_KEY), code 46 (KEY_C), value 0 Event: time 1602866514.307093, -------------- SYN_REPORT ------------ Player 1 - button 8: Event: time 1602866515.047102, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70019 Event: time 1602866515.047102, type 1 (EV_KEY), code 47 (KEY_V), value 1 Event: time 1602866515.047102, -------------- SYN_REPORT ------------ Event: time 1602866515.147092, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70019 Event: time 1602866515.147092, type 1 (EV_KEY), code 47 (KEY_V), value 0 Event: time 1602866515.147092, -------------- SYN_REPORT ------------ Player 2 - Joystick up: Event: time 1602866812.029980, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70015 Event: time 1602866812.029980, type 1 (EV_KEY), code 19 (KEY_R), value 1 Event: time 1602866812.029980, -------------- SYN_REPORT ------------ Event: time 1602866812.285967, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70015 Event: time 1602866812.285967, type 1 (EV_KEY), code 19 (KEY_R), value 0 Event: time 1602866812.285967, -------------- SYN_REPORT ------------ Player 2 - Joystick down: Event: time 1602866813.053973, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70009 Event: time 1602866813.053973, type 1 (EV_KEY), code 33 (KEY_F), value 1 Event: time 1602866813.053973, -------------- SYN_REPORT ------------ Event: time 1602866813.257973, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70009 Event: time 1602866813.257973, type 1 (EV_KEY), code 33 (KEY_F), value 0 Event: time 1602866813.257973, -------------- SYN_REPORT ------------ Player 2 - Joystick left: Event: time 1602866814.177968, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70007 Event: time 1602866814.177968, type 1 (EV_KEY), code 32 (KEY_D), value 1 Event: time 1602866814.177968, -------------- SYN_REPORT ------------ Event: time 1602866814.413960, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70007 Event: time 1602866814.413960, type 1 (EV_KEY), code 32 (KEY_D), value 0 Event: time 1602866814.413960, -------------- SYN_REPORT ------------ Player 2 - Joystick right: Event: time 1602866815.285963, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000a Event: time 1602866815.285963, type 1 (EV_KEY), code 34 (KEY_G), value 1 Event: time 1602866815.285963, -------------- SYN_REPORT ------------ Event: time 1602866815.437955, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000a Event: time 1602866815.437955, type 1 (EV_KEY), code 34 (KEY_G), value 0 Event: time 1602866815.437955, -------------- SYN_REPORT ------------ Player 2 - Button 1: Event: time 1602866817.413952, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70004 Event: time 1602866817.413952, type 1 (EV_KEY), code 30 (KEY_A), value 1 Event: time 1602866817.413952, -------------- SYN_REPORT ------------ Event: time 1602866817.597957, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70004 Event: time 1602866817.597957, type 1 (EV_KEY), code 30 (KEY_A), value 0 Event: time 1602866817.597957, -------------- SYN_REPORT ------------ Player 2 - Button 2: Event: time 1602866819.449940, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70016 Event: time 1602866819.449940, type 1 (EV_KEY), code 31 (KEY_S), value 1 Event: time 1602866819.449940, -------------- SYN_REPORT ------------ Event: time 1602866819.625941, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70016 Event: time 1602866819.625941, type 1 (EV_KEY), code 31 (KEY_S), value 0 Event: time 1602866819.625941, -------------- SYN_REPORT ------------ Player 2 - Button 3: Event: time 1602866821.081932, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70014 Event: time 1602866821.081932, type 1 (EV_KEY), code 16 (KEY_Q), value 1 Event: time 1602866821.081932, -------------- SYN_REPORT ------------ Event: time 1602866821.181923, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70014 Event: time 1602866821.181923, type 1 (EV_KEY), code 16 (KEY_Q), value 0 Event: time 1602866821.181923, -------------- SYN_REPORT ------------ Player 2 - Button 4: Event: time 1602866822.201933, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001a Event: time 1602866822.201933, type 1 (EV_KEY), code 17 (KEY_W), value 1 Event: time 1602866822.201933, -------------- SYN_REPORT ------------ Event: time 1602866822.329916, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001a Event: time 1602866822.329916, type 1 (EV_KEY), code 17 (KEY_W), value 0 Event: time 1602866822.329916, -------------- SYN_REPORT ------------ Player 2 - Button 5: Event: time 1602866823.333921, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000c Event: time 1602866823.333921, type 1 (EV_KEY), code 23 (KEY_I), value 1 Event: time 1602866823.333921, -------------- SYN_REPORT ------------ Event: time 1602866823.473918, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000c Event: time 1602866823.473918, type 1 (EV_KEY), code 23 (KEY_I), value 0 Event: time 1602866823.473918, -------------- SYN_REPORT ------------ Player 2 - Button 6: Event: time 1602866824.401917, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000d Event: time 1602866824.401917, type 1 (EV_KEY), code 36 (KEY_J), value 1 Event: time 1602866824.401917, -------------- SYN_REPORT ------------ Event: time 1602866824.529909, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000d Event: time 1602866824.529909, type 1 (EV_KEY), code 36 (KEY_J), value 0 Event: time 1602866824.529909, -------------- SYN_REPORT ------------ Player 2 - Button 7: Event: time 1602866825.437909, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000e Event: time 1602866825.437909, type 1 (EV_KEY), code 37 (KEY_K), value 1 Event: time 1602866825.437909, -------------- SYN_REPORT ------------ Event: time 1602866825.589898, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000e Event: time 1602866825.589898, type 1 (EV_KEY), code 37 (KEY_K), value 0 Event: time 1602866825.589898, -------------- SYN_REPORT ------------ Player 2 - Button 8: Event: time 1602866826.557909, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000f Event: time 1602866826.557909, type 1 (EV_KEY), code 38 (KEY_L), value 1 Event: time 1602866826.557909, -------------- SYN_REPORT ------------ Event: time 1602866826.697895, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000f Event: time 1602866826.697895, type 1 (EV_KEY), code 38 (KEY_L), value 0 Event: time 1602866826.697895, -------------- SYN_REPORT ------------
J'ai également retiré le clavier qui était branché ainsi que mes deux lightguns. Et maintenant sdl2-jstest ne voit plus aucun joystick (les touches de mon IPAC-2 - mal configurées) continuent de répondre sous ES.
# sdl2-jstest --list error: failed to read gamecontrollerdb.txt: Invalid RWops No joysticks were found
-
@Garden-Dwarf ok tout semble bien remonter sur le système (dans evtest en tous les cas), par contre c'est du coté de ES que çà marche pas et comme ce dernier utilise sdl2-jstest, je ne sais pas trop comment attaquer le soucis.
J'ai peur que ES ne detecte que la version "Joystick" remontée par le système.
Il va nous falloir la maros et du temps pour comprendre ce qu'il se passe.
Par contre ton matériel marche sir Pi3? c'est ce que j'avais cru lire ? tu peux confirmer?
-
@ian57, comme discuté à l'instant avec toi (et pour ne pas avoir de trou dans ce post).
Oui, ça marche sur rpi3 mais j'ai dû configurer es_input.cfg à la main.
Ici, si je fais la même chose, mon es_input.cfg est renommé en es_input.cfg-invalid et un nouvel es_input.cfg est mis à la place avec la configuration d'origine.
-
@Garden-Dwarf ok je me renseigne et je reviens vers toi
-
@Garden-Dwarf yop d'après @Bkg2k " si le es_input est détecté invalide, c'est qu'il a mal été modifié
2:39
Y'a un utilitaire qui vérifie le schéma quand recalbox démarre"du coup pourrais tu poster ici le es_input que tu essaies d'utiliser stp.
-
@ian57, j'étais en train d'investiguer et je vois ton retour. Alors je vais expliquer ce que j'ai fait et observé.
Tout d'abord sur mon RPI3b, comme annoncé, j'ai un es_input.cfg modifié à la main. Dedans j'ai déclaré plus d'entrées que celles par défaut (en fait tous mes boutons). C'est probablement considéré comme du bidouillage, mais c'est le seul moyen que j'avais trouvé pour que touts mes boutons soient reconnus (ES + AdvanceMame, seul core que j'utilise avec RB4.1 et mon RPI3b). Voici ce que ça donne (RPI3b, donc) :
<?xml version="1.0"?> <inputList> <inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1"> <input name="a" type="key" id="1073742050" value="1" code="3811208" /> <input name="b" type="key" id="1073742048" value="1" code="3811208" /> <input name="down" type="key" id="1073741905" value="1" code="3811208" /> <input name="hotkey" type="key" id="112" value="1" code="3811208" /> <input name="left" type="key" id="1073741904" value="1" code="3811208" /> <input name="pagedown" type="key" id="99" value="1" code="3811208" /> <input name="pageup" type="key" id="32" value="1" code="3811208" /> <input name="right" type="key" id="1073741903" value="1" code="3811208" /> <input name="select" type="key" id="49" value="1" code="3811208" /> <input name="start" type="key" id="13" value="1" code="3811208" /> <input name="up" type="key" id="1073741906" value="1" code="3811208" /> <input name="x" type="key" id="122" value="1" code="3811208" /> <input name="y" type="key" id="120" value="1" code="3811208" /> <input name="SHIFT-BUTTON" type="key" id="49" value="1" code="3811208" /> <input name="VOL-DOWN" type="key" id="45" value="1" code="3811208" /> <input name="VOL-UP" type="key" id="61" value="1" code="3811208" /> <input name="P2SELECT" type="key" id="50" value="1" code="3811208" /> <input name="P1SW4" type="key" id="1073742049" value="1" code="3811208" /> <input name="P1SW8" type="key" id="118" value="1" code="3811208" /> <input name="P2STICK-UP" type="key" id="114" value="1" code="3811208" /> <input name="P2STICK-DOWN" type="key" id="102" value="1" code="3811208" /> <input name="P2STICK-LEFT" type="key" id="100" value="1" code="3811208" /> <input name="P2STICK-RIGHT" type="key" id="103" value="1" code="3811208" /> <input name="P2SW1" type="key" id="97" value="1" code="3811208" /> <input name="P2SW2" type="key" id="115" value="1" code="3811208" /> <input name="P2SW3" type="key" id="113" value="1" code="3811208" /> <input name="P2SW4" type="key" id="119" value="1" code="3811208" /> <input name="P2SW5" type="key" id="105" value="1" code="3811208" /> <input name="P2SW6" type="key" id="107" value="1" code="3811208" /> <input name="P2SW7" type="key" id="106" value="1" code="3811208" /> <input name="P2SW8" type="key" id="108" value="1" code="3811208" /> <input name="COIN1" type="key" id="53" value="1" code="3811208" /> <input name="COIN2" type="key" id="54" value="1" code="3811208" /> <input name="SHIFT-P1SELECT" type="key" id="27" value="1" code="3811208" /> <input name="SHIFT-P2SELECT" type="key" id="101" value="1" code="3811208" /> <input name="SHIFT-P1SW1" type="key" id="53" value="1" code="3811208" /> <input name="SHIFT-P1SW2" type="key" id="51" value="1" code="3811208" /> <input name="SHIFT-P1SW3" type="key" id="52" value="1" code="3811208" /> <input name="SHIFT-P1SW4" type="key" id="55" value="1" code="3811208" /> <input name="SHIFT-P1SW5" type="key" id="56" value="1" code="3811208" /> <input name="SHIFT-P1SW6" type="key" id="57" value="1" code="3811208" /> <input name="SHIFT-P1SW7" type="key" id="48" value="1" code="3811208" /> <input name="SHIFT-P1SW8" type="key" id="46" value="1" code="3811208" /> <input name="SHIFT-P2SW1" type="key" id="104" value="1" code="3811208" /> <input name="SHIFT-P2SW2" type="key" id="109" value="1" code="3811208" /> <input name="SHIFT-P2SW3" type="key" id="110" value="1" code="3811208" /> <input name="SHIFT-P2SW4" type="key" id="111" value="1" code="3811208" /> <input name="SHIFT-P2SW5" type="key" id="116" value="1" code="3811208" /> <input name="SHIFT-P2SW6" type="key" id="117" value="1" code="3811208" /> <input name="SHIFT-P2SW7" type="key" id="114" value="1" code="3811208" /> <input name="SHIFT-P2SW8" type="key" id="1073741909" value="1" code="3811208" /> </inputConfig> </inputList>
J'ai donc naturellement copié cet es_input.cfg sur mon OdroidXU4, et c'est là que le fichier a été mis en "invalid". Ensuite j'ai seulement copié les entrées qui correspondent aux entrées par défaut, et là ça passe ! Sur mon OdroidXU4 j'ai maintenant ceci :
<?xml version="1.0"?> <inputList> <inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1"> <input name="a" type="key" id="1073742050" value="1" code="3811208" /> <input name="b" type="key" id="1073742048" value="1" code="3811208" /> <input name="down" type="key" id="1073741905" value="1" code="3811208" /> <input name="hotkey" type="key" id="112" value="1" code="3811208" /> <input name="left" type="key" id="1073741904" value="1" code="3811208" /> <input name="pagedown" type="key" id="99" value="1" code="3811208" /> <input name="pageup" type="key" id="32" value="1" code="3811208" /> <input name="right" type="key" id="1073741903" value="1" code="3811208" /> <input name="select" type="key" id="49" value="1" code="3811208" /> <input name="start" type="key" id="13" value="1" code="3811208" /> <input name="up" type="key" id="1073741906" value="1" code="3811208" /> <input name="x" type="key" id="122" value="1" code="3811208" /> <input name="y" type="key" id="120" value="1" code="3811208" /> </inputConfig> </inputList>
Mes touches sous ES sont donc configurées correctement maintenant, mais le souci c'est la définition des autres touches de mon board.
Et l'autre - gros - souci, c'est que je ne comprends pas pourquoi en modifiant es_input.cfg à la main j'arrive à remapper correctement mes touches, et quand je fais ça via l'interface ça ne fonctionne pas.