device connected, buttons doesn't work

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
joanillo
Posts: 2
Joined: Sun Feb 09, 2014 6:17 pm

device connected, buttons doesn't work

Post by joanillo » Sun Feb 09, 2014 6:25 pm

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

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: device connected, buttons doesn't work

Post by ulao » Mon Feb 10, 2014 2:54 pm

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?

joanillo
Posts: 2
Joined: Sun Feb 09, 2014 6:17 pm

Re: device connected, buttons doesn't work

Post by joanillo » Mon Feb 10, 2014 5:43 pm

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...

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: device connected, buttons doesn't work

Post by ulao » Mon Feb 10, 2014 8:37 pm

;) yes.. easy mistake.

Post Reply