public
Description: ruby implementation of a TUIO client
Homepage:
Clone URL: git://github.com/aberant/tuio-ruby.git
name age message
file .gitignore Thu Sep 03 06:15:05 -0700 2009 updating gitignore [aberant]
file LICENSE Fri Mar 20 06:18:39 -0700 2009 legal stuff [aberant]
file README.rdoc Sun Nov 01 11:46:21 -0800 2009 adding example to readme [aberant]
file Rakefile Fri Oct 16 16:26:29 -0700 2009 changing osc gem used [aberant]
file VERSION.yml Sun Aug 30 11:21:23 -0700 2009 Version bump to 0.2.2 [aberant]
directory examples/ Sun Aug 30 11:04:41 -0700 2009 updating gemspec to include examples in gem [aberant]
directory lib/ Sun Aug 30 11:21:05 -0700 2009 gem housecleaning, updating to use osc-ruby lib [aberant]
directory spec/ Sun Aug 30 10:29:26 -0700 2009 changed project structure to increase sanity [aberant]
file tuio-ruby.gemspec Sun Aug 30 11:21:05 -0700 2009 gem housecleaning, updating to use osc-ruby lib [aberant]
README.rdoc

A TUIO client for Ruby

www.tuio.org/

INSTALL:

  [sudo] gem install tuio-ruby

EXAMPLE:

  require File.join( File.dirname( __FILE__ ), '..', 'lib', '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:

Copyright © 2009 Colin Harris. See LICENSE for details.