Project

tuio-ruby

0.01
No commit activity in last 3 years
No release in over 3 years
library to interface with TUIO protocol
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.6.2
 Project Readme

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.