joy.4 (70022) | joy.4 (70466) |
---|---|
1.\" | 1.\" |
2.\" $FreeBSD: head/share/man/man4/joy.4 70022 2000-12-14 13:58:15Z ru $ | 2.\" $FreeBSD: head/share/man/man4/joy.4 70466 2000-12-29 09:18:45Z ru $ |
3.\" 4.Dd January 23, 1995 5.Dt JOY 4 i386 6.Os FreeBSD 7.Sh NAME 8.Nm joy 9.Nd joystick device driver 10.Sh SYNOPSIS --- 51 unchanged lines hidden (view full) --- 62Set the value to be added to the Y position when reading the joystick 63status. 64.It Dv JOY_GET_X_OFFSET Fa int *offset 65Get the value which is added to the X position when reading the joystick 66status. 67.It Dv JOY_GET_Y_OFFSET Fa int *offset 68Get the value which is added to the Y position when reading the joystick 69status. | 3.\" 4.Dd January 23, 1995 5.Dt JOY 4 i386 6.Os FreeBSD 7.Sh NAME 8.Nm joy 9.Nd joystick device driver 10.Sh SYNOPSIS --- 51 unchanged lines hidden (view full) --- 62Set the value to be added to the Y position when reading the joystick 63status. 64.It Dv JOY_GET_X_OFFSET Fa int *offset 65Get the value which is added to the X position when reading the joystick 66status. 67.It Dv JOY_GET_Y_OFFSET Fa int *offset 68Get the value which is added to the Y position when reading the joystick 69status. |
70 | 70.El |
71.Sh TECHNICAL SPECIFICATIONS | 71.Sh TECHNICAL SPECIFICATIONS |
72 | |
73The pinout of the DB-15 connector is as follow: 74.Pp 75 1 XY1 (+5v) 76 2 Switch 1 77 3 X1 (potentiometer #1) 78 4 Switch 1 (GND) 79 5 Switch 2 (GND) 80 6 Y1 (potentiometer #2) --- 5 unchanged lines hidden (view full) --- 86 12 Switch 3&4 (GND) 87 13 Y2 (potentiometer #4) 88 14 Switch 3 89 15 N.C. 90.Pp 91Pots are normally 0-150k variable resistors (0-100k sometimes), and 92according to the IBM techref, the time is given by 93Time = 24.2e-6s + 0.011e-6s * R/Ohms | 72The pinout of the DB-15 connector is as follow: 73.Pp 74 1 XY1 (+5v) 75 2 Switch 1 76 3 X1 (potentiometer #1) 77 4 Switch 1 (GND) 78 5 Switch 2 (GND) 79 6 Y1 (potentiometer #2) --- 5 unchanged lines hidden (view full) --- 85 12 Switch 3&4 (GND) 86 13 Y2 (potentiometer #4) 87 14 Switch 3 88 15 N.C. 89.Pp 90Pots are normally 0-150k variable resistors (0-100k sometimes), and 91according to the IBM techref, the time is given by 92Time = 24.2e-6s + 0.011e-6s * R/Ohms |
94 | |
95.Sh FILES 96.Bl -tag -width /dev/joy? 97.It Pa /dev/joy? 98joystick device files | 93.Sh FILES 94.Bl -tag -width /dev/joy? 95.It Pa /dev/joy? 96joystick device files |
97.El |
|
99.Sh AUTHORS 100.An Jean-Marc Zucconi Aq jmz@cabri.obs-besancon.fr 101.Sh HISTORY 102The joystick driver appeared in 103.Fx 2.0.5 . | 98.Sh AUTHORS 99.An Jean-Marc Zucconi Aq jmz@cabri.obs-besancon.fr 100.Sh HISTORY 101The joystick driver appeared in 102.Fx 2.0.5 . |