Input Device

James Klaas <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <Pine.LNX.4.58.0701291148570.2281@shenandoah>
I'm trying to write a driver for my ePuppy USB device.

For those of you who aren't familiar with this, it's a simple USB device
that has 5 switches, an internal speaker and two internal LEDs that can
be turned on and off and the LEDs can be made to blink.

I have a libusb program that does everything and now I'm trying to
translate that into a kernel driver.  So far, I've taken the powermate.c
driver and I'm trying to figure out how things work by reading that and the
linux/Document/input/input*.txt files.

I'm currently trying to figure out how to determine what kinds of events get
generated.  Is that something that I define myself?  For instance in
input-programming.txt it has the button_init routine:

...

        button_dev.evbit[0] = BIT(EV_KEY);
        button_dev.keybit[LONG(BTN_0)] = BIT(BTN_0);

...

Is that what defines the type of event, or is that something that comes
from another part of the input driver?

-- 

			James Klaas


-------------------------------------------------------------------------
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
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.