Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 9th, 2007, 7:09 AM   #1
mackenga
Professional Programmer
 
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 314
Rep Power: 4 mackenga is on a distinguished road
Hardware hacking question - Game ports

I just remembered one of my slowly-ticking-over projects and took an interest in it for a few hours. If I do that approximately 5,000 more times I might finish it at some point Anyway, this is mainly a hardware hack initially - I'm building an input device that has 16 analogue inputs (plus multiple digital ones, but they're the easy part).

With a proper game port you get 4 analogue inputs and since the support for game ports from a software development point of view is excellent I'd like to use four of these. They're also unusually easy to attach to from an electronics point of view, which is essential for me because I'm a dangerous idiot with a soldering iron... I understand that it is possible to have multiple game ports in a single machine, but what I'd like to do is use USB game ports like these:

http://www.cables2u.co.uk/product_in...roducts_id=185

Does anyone here have any experience of doing something like this, or anything with game ports, particularly on Linux? I'm planning to use Linux::Input::Joystick (or Linux::Joystick; I haven't looked at them in great detail) to read the joysticks from Perl initially though in practice I might find I need to use C to get the speed I need for my purposes on my (frankly) crufty old hardware.

This is nothing directly to do with game programming but I'm sure that there will be parallels.

Any advice would be appreciated, especially if anyone knows for sure whether it's possible to hook four of these USB game ports up to a USB hub and expect Linux to see them as /dev/js0..3.

Many thanks in advance!
__________________
"I'm not a genius. Why do I have to suffer?"
mackenga is offline   Reply With Quote
Old Jun 11th, 2007, 11:37 AM   #2
mackenga
Professional Programmer
 
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 314
Rep Power: 4 mackenga is on a distinguished road
Hmm, guess I was right when I thought this was too obscure a thing to want to do I've decided to gamble and have invested in four of these USB game ports - less than £20 ($40) on eBay from Germany so I figured it was worth the gamble. My concern is that the machine will only see one of them ... but I'll post here again and confirm whether it works on the offchance that someone is searching these forums for just this information in the future.
__________________
"I'm not a genius. Why do I have to suffer?"
mackenga is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
An aspiring game programmer needs your advice Emperor Community Introductions 5 Feb 10th, 2007 5:36 PM
Multiplayer Game Question Duck Existing Project Development 7 Jan 2nd, 2007 12:19 PM
Java programmers, game developers, artists, be ware! RPG game team is recruiting! atcomputers.us Paid Job Offers 7 Sep 25th, 2005 7:25 PM
Game Development question n3o_X Coder's Corner Lounge 0 Aug 5th, 2005 11:57 PM
Good game programming books? Serious question gardon C++ 9 Mar 2nd, 2005 9:49 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:40 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC