PiTFT: Touch Events in openFrameworks

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
greengiant83
 
Posts: 4
Joined: Mon Mar 31, 2014 3:02 pm

PiTFT: Touch Events in openFrameworks

Post by greengiant83 »

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

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: PiTFT: Touch Events in openFrameworks

Post by adafruit_support_mike »

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.

User avatar
greengiant83
 
Posts: 4
Joined: Mon Mar 31, 2014 3:02 pm

Re: PiTFT: Touch Events in openFrameworks

Post by greengiant83 »

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?

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”