Skip to content

TeehanLax/ofxTVI

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 

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;
}

About

Touch Vision Interface client addon for openFrameworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages