Disable Multitouch

481 views
Skip to first unread message

Gabriel Hooper

unread,
Nov 7, 2017, 2:26:35 PM11/7/17
to Kivy users support
Hi,

I´m developing an application with kivy, RPi3 and its 7" touch display.
I need to work only with single touches but my screen is a Multitouch, there is any way to disable the Multitouch?

cheers

ZenCODE

unread,
Nov 8, 2017, 3:11:54 PM11/8/17
to Kivy users support
What exact issue do you experience? One should be able to handle multiple touches and ignore them if you want to.

A minimal, runnable example is ideal...

Gabriel Hooper

unread,
Nov 8, 2017, 8:36:21 PM11/8/17
to Kivy users support
I can 'disable' the multitouch by disabling all other buttons on my application when some button is pressed, but I wanna know if there is any way of doing this as some sort of kivy configuration. 
Its kind of boring and made my code crowded disabling/enabling the buttons.

Cheers

ZenCODE

unread,
Nov 9, 2017, 7:25:48 AM11/9/17
to kivy-...@googlegroups.com
I don't think so as it's not something many people would want (that's admittedly a guess). But it should be fairly easy to do without repeating code or enabling or disabling widgets. In your outermost container, you could swallow all touch_down events after the first until you get an on_touch_up event?

sac

unread,
Nov 13, 2017, 9:41:21 PM11/13/17
to Kivy users support
How about you try below, hope it helps

from kivy.config import Config

Config.set('input', 'mouse', 'mouse,disable_multitouch')

Cheers, Sac

Gabriel Hooper

unread,
Nov 16, 2017, 1:22:35 PM11/16/17
to Kivy users support
That only works for mouse input, my issue is related to a 7" touchscreen. By now I managed it handling the touches, but I was persuing a configuration so I wouldnt need to change my code.

Now Im checking my screen configurations.

Cheers you all
Reply all
Reply to author
Forward
0 new messages