How to do if input for inverse input in Kivy

I run Kivy with the pygame backend on the SPI Raspberry Pi display. Everything works, except that the y axis of the touch input is inverted. How can i change this?

+2
source share
1 answer

I managed to solve the problem as follows:

sudo nano / usr / local / lib / python2.7 / dist-packages / kivy / input / providers / hidinput.py

line 417

invert_y = int(bool(drs('invert_y', 1)))

for

invert_y = int(bool(drs('invert_y', 0)))
+1
source

Source: https://habr.com/ru/post/1668925/


All Articles