Page 1 of 1

device connected, buttons doesn't work

Posted: Sun Feb 09, 2014 6:25 pm
by joanillo
I'm making this joystick/buttons:
*http://www.raphnet.net/electronique/usb_game12/index_en.php

The difficult part works, the USB is recognized and connected (I checked lsusb and /var/log/syslog). Then I connect a button between a portb pin and ground, but nothing happens. I suppose that if I have an editor text some chars are printed. Isn't it?
thanks a lot

Re: device connected, buttons doesn't work

Posted: Mon Feb 10, 2014 2:54 pm
by ulao
If it shows up I can't thing of anything that would be wrong. I assume you are testing with a controller app and it sees the device? Did you test port c pins?

Re: device connected, buttons doesn't work

Posted: Mon Feb 10, 2014 5:43 pm
by joanillo
I answer myself, it's my misunderstanding. I supposed the gamepad behaves like a keyboard, but i see that it's a different device. I followed this link:

http://ubuntuforums.org/showthread.php?t=1716707

and checked jscal -c /dev/input/js0

I'm making a pimame arcade cabinet. My misunderstanding is because gamepads are mapped with several characters and arrows, so I expected some chars in a text editor...

Re: device connected, buttons doesn't work

Posted: Mon Feb 10, 2014 8:37 pm
by ulao
;) yes.. easy mistake.