[Gridflow-cvs] [svn] commit: r3491 - /trunk/base/flow_objects.rb

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Mon Apr 14 15:45:13 EDT 2008


Author: matju
Date: Mon Apr 14 15:45:13 2008
New Revision: 3491

Log:
no-one uses [joystick_port]

Modified:
    trunk/base/flow_objects.rb

Modified: trunk/base/flow_objects.rb
==============================================================================
--- trunk/base/flow_objects.rb (original)
+++ trunk/base/flow_objects.rb Mon Apr 14 15:45:13 2008
@@ -253,30 +253,6 @@
   end
   def method_missing(*a)
     post "message: %s", *a.inspect
-  end
-}
-
-FObject.subclass("joystick_port",0,1) {
-  def initialize(port)
-    @f = File.open(port.to_s,"r+")
-    @status = nil
-    @clock = Clock.new self
-    @clock.delay 0
-    @f.nonblock=true
-  end
-  def delete; @clock.unset; @f.close end
-  def call
-    loop{
-      begin
-        event = @f.read(8)
-      rescue Errno::EAGAIN
-	@clock.delay 0
-        return
-      end
-      return if not event
-      return if event.length<8
-      send_out 0, *event.unpack("IsCC")
-    }
   end
 }
 



More information about the Gridflow-cvs mailing list