[VM][UNIX] Linux Joystick support

Joern Eyrich joern at eyrich.org
Sun Jan 6 01:23:39 UTC 2002


Here's the nearly 2-year old joystick code, updated for the current vm
release.

It still uses the old polling API insted of the newer event-based stuff,
but I guess that's tolerable as long as Squeak polls the joystick
anyway.

incidentally, JoystickMorph>>stepTime had something mixed up, cs is
attached

And the comment in sqMacJoystickTabletPlugin.c describing the format of
the return value of the joystick read primitive still mixes up the y and
x components and wrongly states that the components are signed
-1024..1023 when in fact they are unsigned 0..2047.

Joern
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sqUnixJoystickTablet.c.gz
Type: application/x-gzip
Size: 1030 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020106/36ec89c1/sqUnixJoystickTablet.c.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JoyStepTime.1.cs.gz
Type: application/x-gzip
Size: 311 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020106/36ec89c1/JoyStepTime.1.cs.bin


More information about the Squeak-dev mailing list