1. USB or Other Port Code

I didn't find anything searching for "USB" in the Archive. I wonder if
somebody here knows what it would take to create a program to receive
data from the USB port. And what would it take to build a device to
connect to the USB port to give that program something to do. :)

I did find some parallel port code in the Archive, however, and am
interestedly looking it over. Alas, I don't think I have anything
connected to my parallel port. I think my printer is connected via USB.

Finally, what about the gameport?

What I'm looking to do is plug something into one of these ports and
have a program "sendkeys" when it receives a response.

Let's say it's a joystick... When I push the stick up, I'd like the
program to receive that and then, for instance, send a keypress of
"X" to the PC (and it to the keyboard buffer or whatever).

Anybody have some clues to get me started?! :)

new topic     » topic index » view message » categorize

2. Re: USB or Other Port Code

cklester wrote:
> 
> 
> I didn't find anything searching for "USB" in the Archive. I wonder if
> somebody here knows what it would take to create a program to receive
> data from the USB port. And what would it take to build a device to
> connect to the USB port to give that program something to do. :)
<snip>
> 
> Anybody have some clues to get me started?! :)
> 

For USB, see http://www.activewireinc.com/ 
They have interface boards and drivers you can download for Win, 
Linux, BSD, Mac, along with some examples you can learn from. 

Irv

new topic     » goto parent     » topic index » view message » categorize

3. Re: USB or Other Port Code

cklester wrote:

<snip>

> Finally, what about the gameport?
> 
> What I'm looking to do is plug something into one of these ports and
> have a program "sendkeys" when it receives a response.
> 
> Let's say it's a joystick... When I push the stick up, I'd like the
> program to receive that and then, for instance, send a keypress of
> "X" to the PC (and it to the keyboard buffer or whatever).
> 
> Anybody have some clues to get me started?! :)
> 

I think this site has everything you will ever need to know:
http://www.epanorama.net/documents/joystick/pc_joystick.html#programming

Irv

new topic     » goto parent     » topic index » view message » categorize

4. Re: USB or Other Port Code

irv mullins wrote:
> 
> cklester wrote:
> > 
> > I didn't find anything searching for "USB" in the Archive.
> > 
> For USB, see <a
> href="http://www.activewireinc.com/">http://www.activewireinc.com/</a>
> They have interface boards and drivers you can download for Win, 
> Linux, BSD, Mac, along with some examples you can learn from. 

Thanks, Irv!

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu