joy2key

149 views
Skip to first unread message

Colin Wright

unread,
Jun 16, 2010, 3:58:38 AM6/16/10
to london-h...@googlegroups.com
Hi, I have nbeen trying to get joy2key to work. I think I got it working before (I did get the gamepad working) and I have installed it. Problem is I get an error when I try to run it. Could someone advise me please?

Terminal details below but basically I get this error and am not sure what to do about it:

"Error opening /dev/input/js0!
Are you sure you have joystick support in your kernel?"

Yeah because I have used recently. I am using Ubuntu 10.04 LTS. Also I think I had to type sudo joy2key everytime I booted my computer. How do I make it permanent?

colin@colin-desktop:~$ sudo apt-get install joy2key
Reading package lists... Done
Building dependency tree      
Reading state information... Done
joy2key is already the newest version.
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.32-21 linux-headers-2.6.32-21-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.

colin@colin-desktop:~$ joy2key
joy2key - reads joystick status and dispatches keyboard events
By Peter Amstutz (tet...@interreality.org)
This is free software under the GNU General Public License (GPL v2)
              (see COPYING in the joy2key archive)
You are welcome to use/modify this code, and please e-mail me
if anything cool comes of it!
Version: 1.6.3   Binary built on Dec 22 2009 at 10:44:26

Error opening /dev/input/js0!
Are you sure you have joystick support in your kernel?


Cheers,
Colin

tenyen

unread,
Jun 16, 2010, 10:19:08 AM6/16/10
to London Hack Space
Heya,

On Jun 16, 8:58 am, Colin wrote:
> Hi, I have been trying to get joy2key to work.
> "Error opening /dev/input/js0!
> Are you sure you have joystick support in your kernel?"

two big clues. I assume your using a usb joystick?

try:
sudo tail -f /var/log/messages
and then plug it in.

I get something like

usb 3-1: new low speed USB device using uhci_hcd and address 4
input: MOSIC USB 2A4K GamePad as /devices/pci0000:00/0000:00:0b.
1/usb3/3-1/3-1:1.0/input/input9
generic-usb 0003:040B:6533.0003: input,hidraw1: USB HID v1.00 Gamepad
[MOSIC USB 2A4K GamePad ] on usb-0000:00:0b.1-1/input0

(thats a usb competition pro: faking it old skool!)
(notice I´ve edited a bunch of stuff out, for your reading pleasure):

also:

ls -la /dev/input/

> Yeah because I have used recently. I am using Ubuntu 10.04 LTS. Also I think
> I had to type sudo joy2key everytime I booted my computer. How do I make it
> permanent?

write or modify a start-up script.

> 0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.

you probably want to do:

sudo apt-get update; sudo apt-get upgrade

to improve security and possibly functionality ;)

werd,

--
http://tenyen.net/
Reply all
Reply to author
Forward
0 new messages