I have a fairly simple app with buttons and sliders that works fine when running on a mac and on a raspberry pi in X-windows. However, when run from the console, accessing the touch screen directly, there are two odd behaviors.
Most importantly, every touch is reported twice. I have a start-stop button, defined below. Whenever I touch this, two events are generated. Same result using on_press or on_release.
Using a mouse to click on the buttons works fine. (Disconnecting the mouse does not change the touch screen button behavior).
Button:
text: 'Stop' if root.is_running else 'Start'
id: start_stop
size_hint_x: 0.15
on_press: root.on_stop() if root.is_running else root.on_start()
Config.ini input section:
[input]
mouse = mouse
%(name)s = probesysfs
mtdev_%(name)s = probesysfs,provider=mtdev
hid_%(name)s = probesysfs,provider=hidinput
secondly, the screen is not drawn until I touch the "start" button. Or, more accurately, touch where the "start" button would be if it had been drawn. After touching that part of the blank screen, the screen does get drawn.
What's up? How do I get this correctly configured? Thanks.