Skip to content

aberant/tuio-ruby

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
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

A TUIO client for Ruby

www.tuio.org/

INSTALL:

[sudo] gem install tuio-ruby

EXAMPLE:

require 'rubygems'
require 'tuio-ruby'

@tc = TuioClient.new

@tc.on_object_creation do | to |
  puts "New TUIO Object at x: #{to.x_pos}, y: #{to.y_pos}"
end

@tc.on_object_update do | to |
  puts "Updated TUIO Object #{to.fiducial_id} at x: #{to.x_pos}, y: #{to.y_pos}"
end

@tc.on_object_removal do | to |
  puts "Removed TUIO Object #{to.fiducial_id}"
end

@tc.on_cursor_creation do | to |
  puts "New TUIO Cursor at x: #{to.x_pos}, y: #{to.y_pos}"
end

@tc.on_cursor_update do | to |
  puts "Updated TUIO Cursor #{to.session_id} at x: #{to.x_pos}, y: #{to.y_pos}"
end

@tc.on_cursor_removal do | to |
  puts "Removed TUIO Cursor #{to.session_id}"
end

@tc.start
sleep

Copyright © 2009 Colin Harris. See LICENSE for details.

About

ruby implementation of a TUIO client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages