]> 4ch.mooo.com Git - 16.git/blob - 16/PCGPE10/GAMEPAD.TXT
modified: 16/DOS_GFX.OBJ
[16.git] / 16 / PCGPE10 / GAMEPAD.TXT
1              ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿\r
2              ³ Programming the Gravis GamePad and Analog Pro ³\r
3              ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ\r
4 \r
5                  Written for the PC-GPE by Mark Feldman\r
6               e-mail address : u914097@student.canberra.edu.au\r
7                                myndale@cairo.anu.edu.au\r
8 \r
9                ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿\r
10                ³      THIS FILE MAY NOT BE DISTRIBUTED     ³\r
11                ³ SEPARATE TO THE ENTIRE PC-GPE COLLECTION. ³\r
12                ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ\r
13 \r
14 \r
15 ÚÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ\r
16 ³ Disclaimer ³\r
17 ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ\r
18 \r
19 I assume no responsibility whatsoever for any effect that this file, the\r
20 information contained therein or the use thereof has on you, your sanity,\r
21 computer, spouse, children, pets or anything else related to you or your\r
22 existance. No warranty is provided nor implied with this information.\r
23 \r
24 ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ\r
25 ³ Programming the Gravis GamePad ³\r
26 ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ\r
27 \r
28 The Gravis GamePad plugs into the standard joystick connector. It is\r
29 a pad with a 9 direction controller (including center) and four buttons.\r
30 Two of the buttons can be selected as "autofire" by a switch on the\r
31 GamePad.\r
32 \r
33                        _____     ||\r
34                       |     \____||________\r
35                       |  __    GRAVIS      \\r
36                       | /  \  GamePad   B  |\r
37                       | \__/          A   C|\r
38                       |______________   D  |\r
39                                      \_____|\r
40 \r
41 The chief difference between the GamePad and a regular joystick is that\r
42 the GamePad uses fixed resistances of about 0ê, 50kê and 100kê. The\r
43 resistances for each controller position are as follows:\r
44 \r
45         ÚÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄ¿\r
46         ³ x = 0ê   ³  x = 50ê  ³  x = 100ê ³\r
47         ³ y = 0ê   ³  y = 0ê   ³  y = 0ê   ³\r
48         ÃÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄ´\r
49         ³ x = 0ê   ³  x = 50ê  ³  x = 100ê ³\r
50         ³ y = 50kê ³  y = 50ê  ³  y = 50ê  ³\r
51         ÃÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄ´\r
52         ³ x = 0ê   ³  x = 50ê  ³  x = 100ê ³\r
53         ³ y = 100ê ³  y = 100ê ³  y = 100ê ³\r
54         ÀÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÙ\r
55 \r
56 The x axis is read via the regular Joystick A X Axis, the y axis is read\r
57 via the Joystick A Y Axis.\r
58 \r
59 The GamePad buttons are accessed the same way that the normal joystick\r
60 buttons are accessed:\r
61 \r
62 ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿\r
63 ³ GamePad Button A               =  Joystick A, Button 1 ³\r
64 ³ GamePad Button B               =  Joystick A, Button 2 ³\r
65 ³ GamePad Button C (autofire A)  =  Joystick B, Button 2 ³\r
66 ³ GamePad Button D (autofire B)  =  Joystick B, Button 1 ³\r
67 ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ\r
68 \r
69 \r
70 ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ\r
71 ³ Programming the Gravis Analog Pro ³\r
72 ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ\r
73 \r
74 The Analog Pro is very similar to a regular joystick, except it has 5\r
75 buttons and a dial on the joystick, originally intended for use as a\r
76 throttle for flight simulators.\r
77 \r
78 \r
79 \r
80                       \19-- B & A\r
81                      ___\r
82                 C -> \ |\r
83                       ||\r
84                  D -\19 || \19- E\r
85                    _Ü_||_Ü_\r
86                    |______|\r
87 \r
88                    Left Side\r
89 \r
90 \r
91 \r
92 The Analog Pro joystick position is read the same as the regular Joystick A.\r
93 The throttle value is read the same as for the regular Joystick B X Axis\r
94 value.\r
95 \r
96            ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿\r
97            ³ Analog Pro Button A =  Joystick A, Button 1 ³\r
98            ³ Analog Pro Button B =  Joystick A, Button 2 ³\r
99            ³ Analog Pro Button C =  Joystick B, Button 1 ³\r
100            ³ Analog Pro Button D =  Joystick B, Button 2 ³\r
101            ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ\r
102 \r
103 The SDK is a bit vague as to how button E is read. It mentions that the\r
104 buttons D and E can be set as any of the joystick buttons, but I believe\r
105 this is done via switches on the joystick itself (not sure, I don't actually\r
106 own one).\r
107 \r
108 ÚÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ\r
109 ³ References ³\r
110 ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ\r
111 \r
112 All the information in this file was obtained from the PC GamePad and Analog\r
113 Pro SDK V1.1 which can be obtained via anonymous ftp:\r
114 \r
115 site: wasp.eng.ufl.edu\r
116 directory: /pub/msdos/demos/programming/source\r
117 filename: joysdk11.lzh\r