In order to cut down on connected devices, is there any way to use a connected USB gamepad as a mouse?

Bonus points to anyone who can make it also act as the keyboard.

As a clarification, the optimal result that I'm looking for is something like the Pandora Minimenu, which provides a simplified interface for use.

  • Just a thought: Mouse on my linux machine is at /dev/input/mouse0 and gamepad at /dev/input/js0. I was wondering if I can create an alternate mouse1 and symbolic link /dev/input/js0 to it! – Lord Loh. Nov 19 '12 at 18:12
  • May I suggest that you also ask this question on unix.SE? – Lord Loh. Nov 19 '12 at 18:17
  • @LordLoh. My understanding is that cross-posting is discouraged, and I would prefer that my answers be viewed in the context of getting something working on a Raspberry Pi. – Zoot Nov 19 '12 at 18:49
  • You can always reframe your question here and post a different one on unix.SE I think it is more of a linux question than something specific to raspberry pi. – Lord Loh. Nov 19 '12 at 18:56
  • I thought X input system did use joysticks for pointer control out of the box. Maybe that's just analogue ones (I've probably tried a PS3 one). Have you tried? Digital pads make terrible pointers, though. – XTL Nov 20 '12 at 7:00

To send keyboard commands from your joystick, check out joy2key. There is some example on the Arch linux wiki.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.