Re: Jkeys - simple joystick to keyboard mapping
Originally Posted by
KillerKiwi
I'm playing with adding mouse support now... it done by adding some key codes
Mouse_Up, Mouse_Down.... Mouse_Click1 (left mouse button), Mouse_Click3 (right mouse button) etc
Using a dance pad as a mouse would be interesting ... lol
Hi
I try to use my DancePad as a mouse too - did your playing around come to a usable result and/or can you explain me how to do it?
I tried with js2mouse from http://cedric.vincent.perso.free.fr/Projets/ but with a dancepad that works only for the buttons, because the x/y-navigation is done through the Joystick-Axis-Movement which the Dancepad is missing if i see that right.
So is there a way to use my USB-DancePad as a mouse, and if yes how do i get it running ;?
;j
Update:
Okay - it worked - i adapted the config-file and saved it as dancepad-as-mouse.joy - it looks like this:
Code:
<config>
<joystick id="0">
<button number="0" key="Mouse_Left" />
<button number="1" key="Mouse_Down" />
<button number="2" key="Mouse_Up" />
<button number="3" key="Mouse_Right" />
<button number="8" key="mouse_click1" />
<button number="9" key="mouse_click3" />
</joystick>
</config>
Then i did a testrun like this:
Code:
jkeys dancepad-as-mouse.joy audacity
And it worked
To find out the Button-Numbers of your dancepad install the Joystick-Calibrator, run it, bounce around on your DancePad and write down the Numbers:
Code:
sudo apt-get install jscalibrator
jscalibrator
Is there a way to assign "diagonal" movement to a Button?
Like key="Mouse_Up_Left" or something like that?
Congratulations!
Neat little Program.
Seems way easier to use to me than js2mouse.
Happy New Year!
Last edited by jonobo; December 31st, 2008 at 07:11 PM.
Reason: Answered Question myself. Found a new Question ;)
7.04 Feisty Fawn on Fujitsu-Siemens Amilo Pro V 2035, Intel Celeron M 370 1.5GHz, 768MB RAM, Graphic: VIA VN800 Mobile, Sound Via AC97, ALPS Touchpad (turned off - death to all touchpads ;!), USB-Mouse, Tascam US-122 USB-Recording-Interface.
Bookmarks