-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Hello,
First, thanks a lot for this very promising app. The instructions using the old branch and the F-Droid app worked greatly, but unfortunately I wasn't able to use any button, making the app not usable. I think to understand that in latest versions, it is now possible to use buttons... But unfortunately I can't find how to use the latest version. Here is what I do for now:
- I download latest version with a clone of the master branch, and I run
pip3 install .. - I install the apk in
devel/app-debug.apk - I install the udev rule with the script in
bin/yoke-enable-uinput - I run yoke
- From the android app, I connect to my computer
Then, I see several layouts (that's a great idea so far), and on the console I get:
$ yoke
Starting service... Press Ctrl+C to exit.
starting webserver on 49439 /home/leo/.local/lib/python3.7/site-packages/yoke/assets/joypad
To connect select "leodeb-Yoke-1" on your device,
or connect manually to "192.168.1.21:49439"
192.168.1.14 - - [20/Aug/2019 12:10:31] "GET /main.html HTTP/1.1" 200 -
192.168.1.14 - - [20/Aug/2019 12:10:32] "GET /base.css HTTP/1.1" 200 -
192.168.1.14 - - [20/Aug/2019 12:10:32] "GET /base.js HTTP/1.1" 200 -
192.168.1.14 - - [20/Aug/2019 12:10:32] code 404, message File not found
192.168.1.14 - - [20/Aug/2019 12:10:32] "GET /favicon.ico HTTP/1.1" 404
and when I click on a layout (say Racing), I get a strange display, without any touchpad anymore (looks a bit strange), like that:

And when I randomly press some buttons, yoke crash on the computer with an error:
192.168.1.14 - - [20/Aug/2019 12:11:15] "GET /racing.css HTTP/1.1" 200 -
192.168.1.14 - - [20/Aug/2019 12:11:15] "GET /img/motiontrinket.svg HTTP/1.1" 200 -
192.168.1.14 - - [20/Aug/2019 12:11:15] "GET /img/b1.svg HTTP/1.1" 200 -
Connected to ('192.168.1.14', 42000)
Shutting down...
Traceback (most recent call last):
File "/home/leo/.local/bin/yoke", line 17, in <module>
service.run()
File "/home/leo/.local/lib/python3.7/site-packages/yoke/service.py", line 313, in run
v = self.preprocess(m, len(self.dev.events))
File "/home/leo/.local/lib/python3.7/site-packages/yoke/service.py", line 246, in preprocess
v = tuple([int(m) for m in v])
File "/home/leo/.local/lib/python3.7/site-packages/yoke/service.py", line 246, in <listcomp>
v = tuple([int(m) for m in v])
ValueError: invalid literal for int() with base 10: b'NaN'
(On the android, I can also see some numbers with one of the numbers being 'NaN', so I guess the error comes from that).
Moreover, before the crash, jstest-gtk does not detect any joystick.
Did I make a mistake? If yes, how could I get a full working yoke, with touchpads and buttons?
Thanks a lot!