|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
6.1. Introduction To Game Port/ Joy Stick Nowadays the most common analogue joystick type is PC analogue joystick. This joystick model was presented by IBM together with their first IBM PC computer. The joystick is just a basic analogue joystick with two buttons. The original joystick interface had circuit for connecting two joysticks, but had only one joystick connector. A special Y-cable was needed if there was need for two joysticks at the same time. Later time some manufacturers put two connectors to their interface card and some card manufacturers implemented only one joystick input. Fortunately most of the card nowadays have option for two joysticks like the original IBM joystick card. The joystick interface card was designed to be as simple and cheap as possible. The card consisted only of bus interface electronics and four monostable multivibrators (all in on 558 chip). Those monostable multivibrators were simple timer circuits which put out a pulse with width directly proportional to the joystick resistance value. The pulse width was then measured using software loop. This has caused anormous amounts of problems to game programmers when computers have become faster and faster all the time. On faster machines, the joystick routine in the software does not read the joystick signal properly resulting in a timing problems. Some dedicated joystick cards are designed to vary the joystick signal so the software can properly detect the joystick and process the data. Joystick construction There are two commonly used ways how PC analogue joystick stick mechanism is constructed. Some joystick convert the stick position to linear motion, whcih then changes the position of the slider in about 100 kohm linear potentiometer. More popular construction is to use normal axial potentiometers and the joystick movement directly turns those potentiometers. Some joystick used special 100 kohm potentiometer which can only turn that 60..90 degrees which joytick can turn. The more common construction is to use the standard 470 kohm (lin) 270 degree potentiomer and use about one fourth of the scale from the beginning (in this way getting 0..120 kohm value range). Usually those potentiometers are normal carbon slider potentimeters which do not last long in intense gaming.
Some I/O cards have implemented only the first joystick functions: X1, Y1, Switch 1 and Switch 2. Some joystick adapter have +5V output also in pin 8. * Many soundcards have joystick interfaces with midi port function enbedded to the same connector. Those midi port impelemtations use pins 12 (midi data output from computer) and 15 (midi data input to computer). The midi cable includes the necessary electronics for signal conversion and isolation. That's a nonstandard way of using the pin and it may cause problems in some cases (some functions of the joyticks are not working or sound card does not even work correctly when certain joyticks are used !). Here is the joystick port pinout used in PC soundcards (Soundblaster, Gravis Ultrasound and many other):
|
Free Software Lesson 1 Lesson
4
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||