Adding USB joystick as 2nd x11 pointer
Any ideas how to do that? I want to keep my normal mouse but also have use a USB joystick to move the pointer, click etc
How about mapping buttons etc? I already tried putting this in xorg.conf: Section "InputDevice" Identifier "Joystick" Driver "joystick" Option "Device" "/dev/input/js0" Option "SendCoreEvents" "true" EndSection and this in the serverlayout: InputDevice "Joystick" "SendCoreEvents" ... it's on virtual/x11-7.0-r2 (modular Xorg) which I compiled with the (Gentoo) +joystick USE flag. X starts up and the mouse is OK as usual but joystick is dead. usbview sees the joystick but other than that I'm at sea ... THanks BOb |
Here is how I get two mouse to work on my laptop
InputDevice "Mouse1" "CorePointer" InputDevice "Keyboard1" "CoreKeyboard" InputDevice ""Joystick" "AlwaysCore" and I would try without; Option "SendCoreEvents" "true" |
Quote:
I might mention that od </dev/input/js0 _does_ respond to the joystick so I am definitely connected through the USB |
Quote:
(EE) Failed to load module "joystick" (out of memory, 701) .. so it looks like my driver load failed. Why would that be and how to fix?????? Cheers Bob |
I stole this from a thread on gentoo forums. Looks like you don't want to set it up in xorg.conf. I would check your kernel, that could explain the memory error;
FROM: mike4148 Quote:
|
Quote:
I already have a working /dev/input/js0 - it's failing because it won't load as a X module... as in /usr/lib/xorg/modules/input/joystick_drv.so gives an error message when X tried to load it Just to cover all the bases I checked my kernel build and I have: CONFIG_INPUT_JOYSTICK=y CONFIG_JOYSTICK_ADI=m ... and I tried "modprobe adi" but it makes no difference (my joystick is a Logitech)... but then I didn't really expect it to make a difference. |
Quote:
I fixed the obvious bug in src/xf86Jstk.c: Code:
static pointer Quote:
Quote:
/* $XFree86: xc/programs/Xserver/hw/xfree86/input/joystick/xf86Jstk.c,v 1.5 2001/11/26 16:25:53 dawes Exp $ */ |
Solved
Quote:
A better approach turns out to be to use some user-space daemons to convert the joystick input stream into mouse-like commands and pump them into X. These worked for me: qjoypad joymouse Now that I've been able to see the joystick in action it seems it's pretty impractical to use it in place of the mouse - it's just not responsive enough and you have no fine control. I guess the joystick is a gaming device and only useful for thrashing back and forth. Well it was a nice idea!! Cheers Bob |
Not so useless though
Hi There,
I just wanted to say thank you! You are right, using the joystick as an X pointer is clunky (although, I think configuring the buttons will make it somewhat more usable), but, it is still very useful. I have been looking into accessibility for people who have little or no use of one or more limbs. I have found that the most interactive/usable/cost-effective off-the-shelf interface devices for these people are various devices which have been designed to plug into the controller port of the Sony Playstation2. Using a PS2->PC converter, coupled with X configured for joystick input means that these devices can be used in place of mouse and keyboard to a certain extent. So, thank you for your help, I can now proceed with my work. :-) Marc |
All times are GMT -5. The time now is 11:38 PM. |