Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005650 [Squeak] OS-Linux minor always 12-19-06 08:05 04-15-07 22:06
Reporter matthewf View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version
Summary 0005650: No Joystick support on Unix machines
Description PrimitiveJoystickPlugin has a null implementation on Unix.
Additional Information Attached is the new trunk/platforms/unix/plugins/JoystickTabletPlugin/sqUnixJoystickTablet.c
Also attached is a C script that acts as a stand-alone unit-test for sqUnixJoystickTablet.c.
Attached Files  sqUnixJoystickTablet.c [^] (4,221 bytes) 12-19-06 08:05
 joytest.c [^] (1,111 bytes) 12-19-06 08:05

- Relationships

- Notes
(0008727 - 496 - 544 - 544 - 544 - 544 - 544)
matthewf
12-19-06 08:20

Issues with this implementation:
- /dev/input/js* is hard-coded as the appropriate file
- reads the joystick even if Squeak does not have X input focus
- assumes that the kernel always reports axis values as signed 16-bit integers (-32768...32767)
- cannot handle over 32 buttons
- assumes the existence of linux (will probably not work on bsd or sun)
- it accesses the kernel directly; perhaps it should use XINPUT, SDL, or HAL

I do not know if any of these assumptions are justifiable.
 
(0010553 - 127 - 133 - 341 - 341 - 341 - 341)
matthewf
04-15-07 22:06

An email about the current Joystick framework:
http://lists.squeakfoundation.org/pipermail/squeak-dev/2002-January/032596.html [^]
 

- Issue History
Date Modified Username Field Change
12-19-06 08:05 matthewf New Issue
12-19-06 08:05 matthewf File Added: sqUnixJoystickTablet.c
12-19-06 08:05 matthewf File Added: joytest.c
12-19-06 08:20 matthewf Note Added: 0008727
12-20-06 23:36 matthewf Issue Monitored: matthewf
04-15-07 22:06 matthewf Note Added: 0010553


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
41 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker