how to map USB MOUSE EVENT in device driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi to all
 I am writing device driver for USB mouse. Now I'm facing one problem : how to map USB mouse button events in driver ?
In probe function I'm registering input device and related key or button events using set_bit( ) function. And in IRQ call I'm mapping mouse button events to particular bits using
input_report_key(dev, BTN_LEFT,   !!(data[2]&0x01));
NOW can anyone tell me which value I should provide as last argument in above function. When I am using different values , Kernel is going to hang. I searched  some information, but not available.
please tell me how to know particular interrupt event for USB mouse and how to map that events using above to functions.
tnx in advance.
regards,
_-_mayank rana_-_
 
 
 
 


Yahoo! Mail
Use Photomail to share photos without annoying attachments.

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux