Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 1677
Number of posts: 4766

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Listing connected joysticks... Posted by Sephiroth on 15 Jun 2008 at 11:52 AM
How can I get a list of connected joysticks using VB .NET 2005? I know how to get attached drives, but I am not sure about joysticks. I simply need to get a list of their names and plop into a combobox for now, but will use them for something else later.

While I am on the subject, I also need to figure out how to detect serial ports and modems. The program will support networking via modem or serial cable in the long-run, and I'll need the info.

-Sephiroth
Report
Re: Listing connected joysticks... Posted by Sephiroth on 21 Jun 2008 at 1:18 PM
: How can I get a list of connected joysticks using VB .NET 2005? I
: know how to get attached drives, but I am not sure about joysticks.
: I simply need to get a list of their names and plop into a combobox
: for now, but will use them for something else later.
:
: While I am on the subject, I also need to figure out how to detect
: serial ports and modems. The program will support networking via
: modem or serial cable in the long-run, and I'll need the info.
:
: -Seph[/gre
: en]iroth
:


I have figured out how to list serial ports using System.IO.Ports.SerialPorts.GetSerialPorts(), but now I need to figure out how to tell if a modem is on a port. I am not quite sure how to do this, aside from opening the port and sending a few modem query commands, which would waste time and effort. Surely I can access the information in Device Manager to figure out what modems (if any) are on what ports.

-Sephiroth
Report
Re: Listing connected joysticks... Posted by Sephiroth on 28 Jun 2008 at 7:42 PM
: I have figured out how to list serial ports using
: System.IO.Ports.SerialPorts.GetSerialPorts(), but now I need to
: figure out how to tell if a modem is on a port. I am not quite sure
: how to do this, aside from opening the port and sending a few modem
: query commands, which would waste time and effort. Surely I can
: access the information in Device Manager to figure out what modems
: (if any) are on what ports.
:
: -Sephiroth

So is it impossible to list connected joysticks using the .NET framework? I have the rest solved, but the only information I found on joysticks was using some Windows 3.11 library known as "winmm.dll", and I'd rather not rely on it as I have read that it is kind of flaky at times.

-Sephiroth



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.