View Full Version : Joystick button detection for events?
jwilson56
January 10th, 2008, 05:54 PM
Ok I will ask one again. I need to be able to fire off an event from a joystick button. I am using this device that enables you to have 4 joystick ports via USB. It will give users an easy way to have digital input ports on their PC's very cheaply.
http://www.easybuy2000.com/store/computer%20accessories/superjoy_usb_adapter.shtml
Is this possible to do in G5 or is a joystick plugin needed?
John
DaveS
January 11th, 2008, 04:17 AM
That seems pretty slick. How many inputs can you get from this.
jwilson56
January 11th, 2008, 04:41 AM
Well each joystick port supports at least 4 buttons but they also support the X-Y axis which is basically a 100-150K Ohm resistance for position. I use one of the Super Joy USB Port adapters for a custom left hand FPS game controller I designed and use all 16 buttons. I have also played around with one when I was using Homeseer and its joystick plugin that also supports the X-Y ports with the idea of using them to determine the position of a door.
It would at least be nice to get the button input for Girder5 to work,
John
Typical joystick connection
1 XY1 (+5v)
2 Switch 1
3 X1
4 Ground (for switch 1)
5 Ground (for switch 2)
6 Y1
7 Switch 2
8 N.C.
9 XY2 (+5v)
10 Switch 3
11 X2
12 Ground (for switch 3&4) *
13 Y2
14 Switch 4
15 N.C. *
A second joystick type started in the early 80's, it was based on a digital circuit, it replaced the potentiometers with regular digital (on/off) switches, it was also known as an atari style joystick. And when Nintendo came out with the know well known joypad many companies like Gravis came out with PC joypads. These types of joysticks pretty much work all the same and are typically wired as in the second diagram. Using this one could manage to get even more buttons with a bit of coding using the X-Y values.
Ron
January 15th, 2008, 10:05 PM
I"ve looked around but can't find the old Joystick driver anymore. I'd whip one together but there is so much to do already.
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.