Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Touch Vision Interface client addon for openFrameworks
C++
tree: 2e8c567e82

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
README.md
install.xml

README.md

ofxTVI - Touch Vision Interface client addon for openFrameworks

Receives touch events from TVI device via TCP socket connection. Android app coming soon. For more information about TVI, read our blog post.

Sample Usage

.h:

ofxTVI tvi;

int touchX;
int touchY;

.cpp:

void testApp::setup(){
    ofSetFullscreen(true);
    ofSetVerticalSync(true);

    tvi.setup( OFX_TVI_COLOR_WHITE );
    ofAddListener(ofEvents.touchMoved, this, &testApp::touchMoved);
}

void testApp::draw(){
    ofBackground(0, 0, 0);

    ofSetColor(255, 0, 0);
    ofCircle(touchX, touchY, 50);

    tvi.draw();
}

void testApp::touchMoved(ofTouchEventArgs &touch) {
    touchX = (int)touch.x;
    touchY = (int)touch.y;
}
Something went wrong with that request. Please try again.