Kidder
Topic Author
Posts: 2
Joined: 01 May 2019, 22:12

Touchscreen press backwards?

13 Jun 2019, 19:01

When pressing the touchscreen it's almost like the input is backwards. Touching the screen results in a click at the cursors previous location and then the cursor is moved to the current touched position on the screen.

Is there a way to change the sequence of the touch input to have the cursor position change and then trigger the button press? ie have ev_abs complete and then ev_key. Or am I thinking about this wrong and just need to get a different screen? Ultimately I need a 17" touchscreen to be a HMI for a Codesys PLC.

Touchscreen is a Viewsonic TD1711
RevPi Core3 w/Stretch

Event: time 1560358801.746906, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1560358801.746906, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0
Event: time 1560358801.746906, -------------- SYN_REPORT ------------
Event: time 1560358814.706733, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1560358814.706733, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 1560358814.706733, type 3 (EV_ABS), code 0 (ABS_X), value 8520
Event: time 1560358814.706733, type 3 (EV_ABS), code 1 (ABS_Y), value 24448
Event: time 1560358814.706733, -------------- SYN_REPORT ------------
Event: time 1560358814.834980, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1560358814.834980, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0
Event: time 1560358814.834980, -------------- SYN_REPORT ------------

Who is online

Users browsing this forum: No registered users and 1 guest