Czarny wrote:The problem is in the fact, that the joystick doesn't produce a normal otuput of a 4/8/16/32 way joystick, but something totally different, dependant on mode, preasure, dirrection and probabelly a lot more stuff.
That's correct--like the previous poster noticed, without any patch you'll see the raw codes from the pad when you use mode2. I believe the raw codes are basically a delta-x, delta-y pair, because the pad is pressure-sensitive and so the deltas are variable.
Czarny wrote:So here I have two requests/suggestsions:
1. As I got confused in regards of the implementation of this strange behaviour, a seperate kernel module, some tweaking of lirc, then again a symbiotic driver...I' totally out of it. Even more with the avalanche of patches of other ppl patches including something else. Could anyone point out the outcome of this patching other ppls patches? I *think* there is a patch making the 'mouse' usable and one making the 'mouse' behave as a 4 way joystick. But I've seen some other patches here, that change behaviour from the mousish to the joystickish with the Moue/Keyboard button. Could anyone clear this one for me? Which patch is the newest outcome of the pathcing avalanche, working with lirc 0.8.1pre2 (or simillar), giving both mouse and joystick function??
I believe the patch hosted on my web server (
http://vorticon.no-ip.info/pub/patches/lirc-0.8.0-imon-keys-kernel.patch) is the cumulative effort of all the coders in this thread. It includes the mouse/keyboard switching (not mouse/joystick) by pressing the mouse/keyboard button. It also includes some fixes for the recent kernel changes to the USB api (the .owner field). I don't know if the patch will apply cleanly on lirc-0.8.1. It should unless other changes have been made to the imon driver, in which case maybe they've fixed this problem and the patch isn't needed.
I don't use my own patch anymore. I have Gentoo and they have a modified form of this patch which only enables keyboard mode (no mouse) but that's exactly what I need, so I use it. In case anyone's interested, just add this line to your make.conf
- Code: Select all
LIRC_DEVICES="imon_pad2keys"
Then all you have to do is emerge lirc-0.8.0-r5 and make sure your lircd.conf codes match (they should) and you're on your way.
Czarny wrote:2. I've seen a long dispute in how the driver works. Did anyone tried two obvious sollutions? One could reverse engeneer the windows driver, or in the contrarry - if this really is a mouse, why not send all of its input to every mouse driver linux has? I doubt, that ppl from Soundforge built a totally new mouse device, new protocol - they could've use some other, already existing protocol and that test would ease a lot of work (if it suceedeed).
I think reverse engineering the windows driver would be a difficult task and probably pointless, considering that the protocol and codes are understood (thanks to Venky). The mouse/keyboard patch on my site uses the kernel mouse driver (as far as I know there are no other linux mouse drivers).
The original author of this patch (DataPath) had been working on a "next generation" user-space driver which would just "do the right thing" and you could configure the behavior of the mouse/keyboard button, etc. with configuration files instead of having to patch and recompile. I haven't heard anything from DataPath on this subject in a while, though.