-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm writing a driver for my NYKO Airflo gamepad.  Mainly to learn about  
USB driver writing, but am having a problem and wondered if someone  
could help:

Currently I have keyboard events hard coded to varous buttons on the  
gamepad and that's working fine, but I wanted to try and simulate mouse  
movement with the analog sticks, so based on the usbmouse.c code I  
added lines such as this:

input_report_rel(dev, REL_X, (signed char) mouseX);
input_report_rel(dev, REL_Y, (signed char) mouseY);

and the probe function reports EV_REL and REL_X | REL_Y.

Most of my driver looks like the usbmouse.c driver but the cursor never  
moves.  The one thing I noticed is that my gamepad doesn't report  
itself as a mouse (obviously) but the usbmouse shows

bInterfaceProtocol      2 Mouse

under lsusb and that's the only real difference I can see and also  
suspected that the source of my problem is somewhere in there.  How do  
I get events from the gamepad to show up on the mouse pointer?

The complete code for the driver is at

http://browning.homelinux.com/airflo.c.txt

Thanks,
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGABNqkrMhu3TTi1MRAtu6AJ9RotyNeUZECPdHeYU/UPCPCTiDXwCghC9Z
p6XL+/RxJWfbYh+w0LKE4PE=
=s6rA
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to