Hi All,

I am a newbie for Device Drivers Programming.

I have to handle auto repeat key presses by reading the Key board input device /dev/input/event0.
I know that i can get a structure as follows
struct input event{
struct timeval time;
unsigned short type;
unsigned short code;
unsigned int value;
}
For value –
0 – EVT_KEY
1 – release
2 – autorepeat.

If i read the key board device.

Now my question is whether i should keep on checking that is the return value of the variable "value" is 2 repeatedly to know that there is a repeated key press. OR is there any other way that driver can directly tell me that there is a repeated key press.

Can any one help me to get a solution for this.

Thanks & Regards
Vikram