I am trying to use the cool Pi touchscreen with openFrameworks. It doesn't automatically recognize the touch events as mouse events. I can see activity in /dev/input/touchscreen if I pass it to the cat command. I recompiled openFrameworks to use that input instead of the standard mouse but OF complains that it cant recognize the events. Do you know the format of the data coming across that file? Or any other way to get the touch events in my openFrameworks project?
This is the touchscreen I am referring to:
https://www.adafruit.com/products/1601
PiTFT: Touch Events in openFrameworks
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: PiTFT: Touch Events in openFrameworks
The output you get from `cat` is the raw data from the device file. I don't know anything about OpenFrameworks though, so I don't know what it expects.
- greengiant83
- Posts: 4
- Joined: Mon Mar 31, 2014 3:02 pm
Re: PiTFT: Touch Events in openFrameworks
No worries. Do you happen to know the format of the data that it is kicking out so that I can write my own handler?
Please be positive and constructive with your questions and comments.