PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Joystick input under win32 (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Joystick input under win32
#751
sorgo (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Joystick input under win32 4 Months ago Karma: 0  
Hello,

have you ever tried to get usb joystick input?

under linux it's very easy, i have to read /dev/input/js0 and that's all :)

is there any way to read joystick input under w32 ?

I tried the php_w32api.dll, but all my tries were unsuccessful. I'm not even sure if phpgtk can work win w32api.dll


Thanks in advance for any ideas.
 
  The administrator has disabled public write access.
#752
kksou (Admin)
Admin
Posts: 443
graph
User Online Now Click here to see the profile of this user
Re:Joystick input under win32 4 Months ago Karma: 8  
If it's a serial port joystick, then you can easily interface with it through COM1 to COM4 (very similar to the parallel port receipt printer).

But I'm not sure about the usb one.

If you can find a solution that works for MS-DOS, then it should also work with PHP-GTK. There are still quite a lot of DOS applications around. Someone should have written something that interface with USB devices for MS-DOS.

Regards,
/kksou
 
  The administrator has disabled public write access.
#753
sorgo (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Joystick input under win32 4 Months ago Karma: 0  
Thanks for extra quick answer :)

i like this idea. must give it a try.

Under linux it works perfectly. Hope to find something useable e.g. USB raw dump would be perfect.

I'm already familiar with joystick input (supposing /dev/input/js gives raw data from js).
 
  The administrator has disabled public write access.
#754
kksou (Admin)
Admin
Posts: 443
graph
User Online Now Click here to see the profile of this user
Re:Joystick input under win32 4 Months ago Karma: 8  
This is an example of what I'm talking about:

Yes, there are USB drivers for DOS...

The USB driver above works only for mass storage devices, though.

Hopefully you can find one for your usb joystick.

Regards,
/kksou
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2009. kksou.com. All Rights Reserved