Sha256: 3921a83bb841704d8e6d1c936c22ea703f6040bd0d6bced49ce49a8a92d4da3e

Contents?: true

Size: 902 Bytes

Versions: 2

Compression:

Stored size: 902 Bytes

Contents

= A TUIO client for Ruby

http://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:

Copyright (c) 2009 Colin Harris. See LICENSE for details.


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tuio-ruby-0.2.5 README.rdoc
tuio-ruby-0.2.4 README.rdoc