LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How to read keys from USB keyboard on AT91SAM9260 (https://www.linuxquestions.org/questions/linux-hardware-18/how-to-read-keys-from-usb-keyboard-on-at91sam9260-750034/)

siva4ever 08-25-2009 01:50 AM

How to read keys from USB keyboard on AT91SAM9260
 
Hi Everyone,

I am using 2.6.26.3-olimex kernel(Embedded system) running on AT91SAM9260. I am using a Logitech USB keyboard.

It is detected as "/dev/input/event0".

I don't know how to detect key press events and read the keys?

Why can't I read the keys using scanf() like funtions?

Can anyone help me?

Regards,
Siva

business_kid 08-25-2009 04:06 AM

Have you got HID modules loaded?

siva4ever 08-25-2009 08:19 AM

Hi business_kid,

Thanks for your response.

I have enabled the following options in the menuconfig file.

Input Device Support --> Event Interface
Keyboards --> AT Keyboard
HID Devices --> USB Human Interface Device support
HID Devices --> PID device support
Special HID Drivers --> Logitech and Logitech force feedback

I don't find anything inside /lib/modules/

How to check the HID modules are loaded or not?


All times are GMT -5. The time now is 02:18 PM.