Since the display is in portrait mode, I have also to rotate the touch screen by 90° using config.ini:
[input]
# achim dekativiert: mouse = mouse
# achim deaktiviert (sonst sind 2 touchpads da!); %(name)s = probesysfs,provider=hidinput
<eGalax Inc. Touch> = hidinput,/dev/input/event1,rotation=90,min_position_x=44,min_position_y=90,max_position_x=1992,max_position_y=1992
Using the super-helpful examples/demo/touchtracer, I get the following:
However, configuration options in config.ini are obeyed, as displayed during startup of touchtracer:
[INFO ] HIDInput: Read event from </dev/input/event1>
[INFO ] HIDInput: Set custom rotation to 90
[INFO ] HIDInput: Set custom min_position_x to 44
[INFO ] HIDInput: Set custom min_position_y to 90
[INFO ] HIDInput: Set custom max_position_x to 1992
[INFO ] HIDInput: Set custom max_position_y to 1992
[INFO ] Base: Start application main loop
[INFO ] HIDMotionEvent: using <eGalax Inc. Touch>
[INFO ] HIDMotionEvent: <eGalax Inc. Touch> range ABS X position is 0 - 2047
[INFO ] HIDMotionEvent: <eGalax Inc. Touch> range ABS Y position is 0 - 2047
Thanks, Achim
(My apologies is this post shows up a second time. But the first time it did not seem to go through.)
class HIDInputMotionEventProvider(MotionEventProvider):
options = ('min_position_x', 'max_position_x',
'min_position_y', 'max_position_y',
'min_pressure', 'max_pressure',
'invert_x', 'invert_y', 'rotation',
'min_abs_x', 'max_abs_x', 'min_abs_y', 'max_abs_y') # (achim) added
[input]
# achim deactivated: mouse = mouse
# achim deactivated (otherwise 2 touchpads show up!); %(name)s = probesysfs,provider=hidinput
#eGalax = hidinput,/dev/input/event1,rotation=90,min_position_x=44,min_position_y=90,max_position_x=1992,max_position_y=1992
# '..._position_...' do not work! insert '..._abs_...' keywords in hdinput.py and use them!
# AND when using rotation=90: x and y refer to the un-rotated coordinates!
eGalax = hidinput,/dev/input/event1,rotation=90,min_abs_x=60,min_abs_y=90,max_abs_x=1985,max_abs_y=1970
'range ABS X'
and 'range ABS Y'
:
[INFO ] HIDInput: Read event from </dev/input/event1>
[INFO ] HIDInput: Set custom rotation to 90
[INFO ] HIDInput: Set custom min_abs_x to 60
[INFO ] HIDInput: Set custom min_abs_y to 90
[INFO ] HIDInput: Set custom max_abs_x to 1985
[INFO ] HIDInput: Set custom max_abs_y to 1970
[INFO ] Base: Start application main loop
[INFO ] HIDMotionEvent: using <eGalax Inc. Touch>
[INFO ] HIDMotionEvent: <eGalax Inc. Touch> range ABS X position is 0 - 2047
[INFO ] HIDMotionEvent: <eGalax Inc. Touch> range ABS Y position is 0 - 2047
--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/CZHC6DMEC6c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This email has been sent from a virus-free computer protected by Avast. www.avast.com |