mirror of https://github.com/kivy/kivy.git
sdl2: deactivate finger motion, as the coordinate are 0, 0 on OSX, and finger doesnt seem triggered on others platforms. We will find a proper solution later.
This commit is contained in:
parent
4bb501f428
commit
51c324f9fa
|
@ -261,9 +261,15 @@ class WindowSDL(WindowBase):
|
|||
|
||||
elif action in ('fingermotion', 'fingerdown', 'fingerup'):
|
||||
# for finger, pass the raw event to SDL motion event provider
|
||||
SDL2MotionEventProvider.q.appendleft(event)
|
||||
# XXX this is problematic. On OSX, it generates touches with 0,
|
||||
# 0 coordinates, at the same times as mouse. But it works.
|
||||
# We have a conflict of using either the mouse or the finger.
|
||||
# Right now, we have no mechanism that we could use to know
|
||||
# which is the preferred one for the application.
|
||||
#SDL2MotionEventProvider.q.appendleft(event)
|
||||
pass
|
||||
|
||||
if action == 'mousemotion':
|
||||
elif action == 'mousemotion':
|
||||
x, y = args
|
||||
self.mouse_pos = x, self.system_size[1] - y
|
||||
self._mouse_x = x
|
||||
|
|
Loading…
Reference in New Issue