joy.4 (9311) | joy.4 (10822) |
---|---|
1.Dd January 23, 1995 2.Dt JOY 4 3.Sh NAME 4.Nm joy 5.Nd joystick device driver 6.Sh SYNOPSIS 7.Cd device joy0 at isa? port "IO_GAME" 8.Fd #include <machine/joystick.h> --- 40 unchanged lines hidden (view full) --- 49Set the value to be added to the Y position when reading the joystick 50status. 51.It Dv JOY_GET_X_OFFSET Fa int *offset 52Get the value which is added to the X position when reading the joystick 53status. 54.It Dv JOY_GET_Y_OFFSET Fa int *offset 55Get the value which is added to the Y position when reading the joystick 56status. | 1.Dd January 23, 1995 2.Dt JOY 4 3.Sh NAME 4.Nm joy 5.Nd joystick device driver 6.Sh SYNOPSIS 7.Cd device joy0 at isa? port "IO_GAME" 8.Fd #include <machine/joystick.h> --- 40 unchanged lines hidden (view full) --- 49Set the value to be added to the Y position when reading the joystick 50status. 51.It Dv JOY_GET_X_OFFSET Fa int *offset 52Get the value which is added to the X position when reading the joystick 53status. 54.It Dv JOY_GET_Y_OFFSET Fa int *offset 55Get the value which is added to the Y position when reading the joystick 56status. |
57 58.Sh TECHNICAL SPECIFICATIONS 59 60The pinout of the DB-15 connector is as follow: 61.Pp 62 1 XY1 (+5v) 63 2 Switch 1 64 3 X1 (potentiometer #1) 65 4 Switch 1 (GND) 66 5 Switch 2 (GND) 67 6 Y1 (potentiometer #2) 68 7 Switch 2 69 8 N.C. 70 9 XY2 (+5v) 71 10 Switch 4 72 11 X2 (potentiometer #3) 73 12 Switch 3&4 (GND) 74 13 Y2 (potentiometer #4) 75 14 Switch 3 76 15 N.C. 77.Pp 78Pots are normally 0-150k variable resistors (0-100k sometimes), and 79according to the IBM techref, the time is given by 80Time = 24.2e-6s + 0.011e-6s * R/Ohms 81 |
|
57.Sh FILES 58.Bl -tag -width /dev/joy? 59.It Pa /dev/joy? 60joystick device files 61.Sh AUTHOR 62Jean-Marc Zucconi <jmz@cabri.obs-besancon.fr> 63.Sh HISTORY 64The joystick driver appeared in FreeBSD 2.0.5. | 82.Sh FILES 83.Bl -tag -width /dev/joy? 84.It Pa /dev/joy? 85joystick device files 86.Sh AUTHOR 87Jean-Marc Zucconi <jmz@cabri.obs-besancon.fr> 88.Sh HISTORY 89The joystick driver appeared in FreeBSD 2.0.5. |