How do I get pen type events in my app?

by walnutchen » Fri, 04 Feb 2011 05:19:29 GMT

Sponsored Links
 So the driver guy tells me that I have an input device that is capable
of inputting the "pen" type.  This is custom hardware, of course.

He says he is calling:

input_report_key(dev, BTN_TOOL_PEN, 1);
input_report_key(dev, BTN_TOOL_RUBBER,1);

and also reporting the X and Y coordinates with ABS_X and ABS_Y.

I can get the ACTION_DOWN and ACTION_UP and (x,y) in my app with
motionEvents.  For the life of me I cannot figure out how to get the
pen "type" events.  Is that a keyEvent?  I tried to listen to
keyEvents but I never hear anything about pen type...

Please help.  Thanks.


Other Threads

1. gmna back up in phone book...

Dear Master ...

Mohon petunjuknya u user G5..
bagaimana u pindahkan/back up contact phone number d hp qt ke contact list d
(spy ada data back up aja d gmail).. thanx b4..

Regards ,
Pman G5


2. interfacing touchscreen LCD to BB-Xm

Hi guys,

I have a Beagle Board Xm, I want to interface touchscreen LCD to it
and port Android ..

Has anyone doe it before?



3. Sync Zimbra ke Android

4. Salam Kenal

5. [WTI] InsertCoin GB Sense 2.1 for HTC Desire

6. [WTA] Game multi user

7. Samsung fit vs LG opt p500