USB input capture

Jan Schenkel janschenkel at yahoo.com
Fri Jun 11 12:07:31 EDT 2004


--- Mike Bautsch <mike at themactech.com> wrote:
> I need to find out if Revolution can capture USB
> device input.
> Specifically, I need to use a Logitech steering
> wheel and pedals with my
> app, but I only need to detect if the accelerator or
> brake pedal has
> been pushed. I am writing an app that will be used
> for Drivers Education
> to test accelerator to brake reaction time. I
> attempted to write my app
> in Real Basic, but unfortunately RB has a bug in it
> that bombs out any
> app trying to capture game device input under
> windows. Real Basic
> doesn't seem to be in any hurry to fix this problem
> so I am looking for
> a viable alternative. I took a brief look at Visual
> Basic, but if I use
> VB I'm stuck with a win only app.
>  
> Please Help!!
>  
> Thanks,
>  
> Mike Bautsch
>  

Hi Mike,

The good news is that Revolution lets you read from
and write to USB devices, with code similar to the
script below:
--
on mouseUp
  ## open a connection to the device
  open driver tDeviceName for binary read
  ## read three unsigned 32-bit integers 
  read from driver tDeviceName for 3 uint4
  ## do some more reading
  ## ...
  ## close the connection to the device
  close driver tDeviceName
end mouseUp
--

The bad news is that I haven't used it before, but I'm
sure there are others who would be happy to help you
with additional questions -- just wanted to inform you
that Revolution can do it.

Best regards,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


More information about the use-livecode mailing list