Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Joystick device for Linux

0 views
Skip to first unread message

Arne Stoffregen

unread,
Dec 15, 1993, 7:11:44 AM12/15/93
to
Hi world!
Sorry if this has been thoroughly discussed before, but
I wanted to know, if anyone has bothered to write a joy-
stick device for Linux. I haven't looked at the source,
but I cannot remember any file with a name like that.
Cleverly I have looked for a /dev/joystick and found none,
so I assumed it does not exist. :-))
I am writing on a 3D kind of a program and would like to
rotate objects with the joystick.
If anyone could give me a hint on who did this before or
how to write a device (I think there is a FAQ for that??)
I would be grateful.

Thanks
Arne

--
Arne Stoffregen, Germany
Email:sto...@uni-muenster.de
I am Clinton of Borg. Resistance if futile. You will be assimilated.

Dauphin

unread,
Dec 15, 1993, 7:57:37 PM12/15/93
to
<previous post deleted>

There's been a joystick driver available for linux since before 0.99.6
And the devices are js0 & js1, btw. :)

tsx.mit.edu:/pub/linux/patches/joystick-0.5.tar.z

--
Christopher Seawood
ro...@seawoocl.student.rose-hulman.edu
seaw...@nextwork.rose-hulman.edu

Ken Pizzini

unread,
Dec 15, 1993, 8:27:36 PM12/15/93
to
In article <1993Dec15....@rz.uni-hildesheim.de>,

Arne Stoffregen <sto...@uni-muenster.de> wrote:
>I wanted to know, if anyone has bothered to write a joy-
>stick device for Linux.

There is an oldish one:
tsx-11.mit.edu:/pub/linux/patches/joystick-0.5.tar.z

I think this was relative to the 0.99p10 release of Linux,
so the patches won't install directly (changed file tree
structure, e.g.). It'll get you started, anyway.

--Ken Pizzini

Doug DeJulio

unread,
Dec 16, 1993, 1:15:14 AM12/16/93
to
In article <2eobq1$s...@master.cs.rose-hulman.edu>,

Dauphin <ro...@Brindisi.rose-hulman.edu> wrote:
>There's been a joystick driver available for linux since before 0.99.6
>And the devices are js0 & js1, btw. :)
>
>tsx.mit.edu:/pub/linux/patches/joystick-0.5.tar.z

So, a PC joystick works because there are two trim pots in there,
providing variable resistance which depends on the X and Y positions
of the stick, and the joystick card measures this variable resistance.

Has anyone done anything FUN with this under Linux? Like for example,
sticking a thermistor of some sort on there to make something that
monitors the temperature?

--
Doug DeJulio
dd...@cmu.edu

Kai Harrekilde-Petersen

unread,
Dec 15, 1993, 3:32:37 PM12/15/93
to
In article <1993Dec15....@rz.uni-hildesheim.de>,
sto...@uni-muenster.de (Arne Stoffregen) writes:


Hi world!
Sorry if this has been thoroughly discussed before, but
I wanted to know, if anyone has bothered to write a joy-
stick device for Linux. I haven't looked at the source,
but I cannot remember any file with a name like that.
Cleverly I have looked for a /dev/joystick and found none,
so I assumed it does not exist. :-))
I am writing on a 3D kind of a program and would like to
rotate objects with the joystick.
If anyone could give me a hint on who did this before or
how to write a device (I think there is a FAQ for that??)
I would be grateful.

A hacker's HOWTO on device drivers are included in the KHG (Kernel Hacker's
Guide). I'm looking forward to your joystick device driver!

Kai

Jeff Tranter

unread,
Dec 16, 1993, 1:39:02 PM12/16/93
to
In article <1993Dec15....@rz.uni-hildesheim.de> sto...@uni-muenster.de (Arne Stoffregen) writes:

Hi world!
Sorry if this has been thoroughly discussed before, but
I wanted to know, if anyone has bothered to write a joy-
stick device for Linux. I haven't looked at the source,
but I cannot remember any file with a name like that.
Cleverly I have looked for a /dev/joystick and found none,
so I assumed it does not exist. :-))
I am writing on a 3D kind of a program and would like to
rotate objects with the joystick.
If anyone could give me a hint on who did this before or
how to write a device (I think there is a FAQ for that??)
I would be grateful.

It has been done. See
tsx11.mit.edu:/pub/Linux/patches/joystick-0.5.tar.z

These patches are for a few kernel revisions back, but it shouldn't be
too hard too apply them to a recent kernel. I believe I applied them
to 0.99pl13.

Jeff
--
Jeff Tranter / Software Technology
Mitel Corporation, Kanata, Ontario, CANADA

Eyal Lebedinsky

unread,
Dec 18, 1993, 6:06:27 AM12/18/93
to

I don't remember the name of it but there IS a joystick driver. Last
time I looked in WAS on tsx-11...grep...grep...grep.. Here:
In the /patches directory of the Linux part: joystick-0.5.tar.z.

My ls file is from early November so it should still be there.
--
Regards
Eyal Lebedinsky ey...@ise.canberra.edu.au

Dennis Flaherty

unread,
Dec 19, 1993, 1:54:07 PM12/19/93
to
In article <TRANTER.93...@ipc35.software.mitel.com>,

Jeff Tranter <tra...@Software.Mitel.COM> wrote:
> In article <1993Dec15....@rz.uni-hildesheim.de> sto...@uni-muenster.de (Arne Stoffregen) writes:
>
> > Hi world!
> > Sorry if this has been thoroughly discussed before, but
> > I wanted to know, if anyone has bothered to write a joy-
> > stick device for Linux. I haven't looked at the source,
> > but I cannot remember any file with a name like that.
> > Cleverly I have looked for a /dev/joystick and found none,
> > so I assumed it does not exist. :-))
>
> It has been done. See
> tsx11.mit.edu:/pub/Linux/patches/joystick-0.5.tar.z
>
> These patches are for a few kernel revisions back, but it shouldn't be
> too hard too apply them to a recent kernel. I believe I applied them
> to 0.99pl13.
>
> Jeff

I wonder why these patches aren't in the standard kernel. Do your
patches for pl13 work with pl14?

> > I am writing on a 3D kind of a program and would like to
> > rotate objects with the joystick.
> > If anyone could give me a hint on who did this before or
> > how to write a device (I think there is a FAQ for that??)
> > I would be grateful.

This is probably more of an XFree86 question. If the standard
Linux kernel supported joysticks, then XFree86 could use one as
an input device.

--
Dennis T. Flaherty Home: den...@denix.elk.miles.com
Flaherty Nanobreweries Work: den...@se01.elk.miles.com
Oatmeal Stout: It's the Right Thing to Drink!

Thomas Aaron Insel

unread,
Dec 19, 1993, 7:52:50 PM12/19/93
to
den...@denix.elk.miles.com (Dennis Flaherty) writes:

> This is probably more of an XFree86 question. If the standard
> Linux kernel supported joysticks, then XFree86 could use one as
> an input device.

Probably not. The mouse drivers don't provide a standardized output,
they just make it possible to read the mouse as a device. XFree has
to interpret each kind of mouse seperately.

You could write some sort of interface program than read joystick
input, translated it into mouse-speak, and spit it out through a named
pipe. A similar method was once used with PS/2 mice and XFree.

Tom
--
Thomas Insel (tin...@uiuc.edu)
s-mail: 810 West Illinois Street, Urbana, IL 61801

0 new messages