pobalopalous
Posts: 11
Joined: Tue Nov 03, 2015 12:21 pm

How to trigger a Left Click mouse event with 7" touch screen

Tue Nov 17, 2015 9:10 pm

The 7" display was looking promising for a simple touch screen audio recording and playback project with Audacity but play, pause, record, stop, etc. buttons are not behaving properly. The mouse movement (including mouse over) is registered and a press on the screen will highlight the icon for the button, but there is no click event.
I have to attach a mouse to achieve this. It's probably as a result of whatever approach Audacity implementation is using to render the icons for the actions. Any options I should consider?

JimmyN
Posts: 1109
Joined: Wed Mar 18, 2015 7:05 pm
Location: Virginia, USA

Re: How to trigger a Left Click mouse event with 7" touch sc

Wed Nov 18, 2015 11:24 am

It should work, perhaps your doubleclick time is too short, that will make it seem like it's not working. You've probably noticed how fast you have to doubleclick with the mouse, the default value is low, IIRC it was only 1/5 of a second. I was having trouble double-tapping (doubleclick) on the touch screen, I guess my finger wasn't fast enough.

I increased the doubleclick time in "~./config/openbox/lxde-pi-rc.xml" to "500" (half second) and now double taps on the screen work well, and doubleclicking with the mouse is easier too.

pobalopalous
Posts: 11
Joined: Tue Nov 03, 2015 12:21 pm

Re: How to trigger a Left Click mouse event with 7" touch sc

Wed Nov 25, 2015 11:15 pm

JimmyN wrote:It should work, perhaps your doubleclick time is too short, that will make it seem like it's not working. You've probably noticed how fast you have to doubleclick with the mouse, the default value is low, IIRC it was only 1/5 of a second. I was having trouble double-tapping (doubleclick) on the touch screen, I guess my finger wasn't fast enough.

I increased the doubleclick time in "~./config/openbox/lxde-pi-rc.xml" to "500" (half second) and now double taps on the screen work well, and doubleclicking with the mouse is easier too.
Thanks for the suggestion. It has not worked for me so far. However, I will try different values.

Return to “Official Foundation Display”