# Soft-autorepeat functionality

- From: Peter Stokes \<hidden\>
- Date: 2008-02-12 23:14:14 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2008/02/8909428
- Thread: https://ratatoskr.run/linux-input/2008/02/8909428/t.md

```text
I've been experimenting with using the software autorepeat functionality in 
drivers/input/input.c and have the problem that it autorepeats all EV_KEY 
reported events, this includes mouse buttons etc. which for a combined 
mouse/keyboard device is undesirable. I appreciate that I could override the 
functionality by providing my own implementation of software autorepeat, 
which filters such buttons from being repeated, but I was wondering whether 
this is something that should be included in the default implementation?

I'm not sure where the definition of KEY_MIN_INTERESTING comes from but it 
appears to me that it is only keys with codes less than this value that 
should be repeated?

So, please find attached a patch that implements the functionality I am 
looking for...

Best regards

Peter Stokes

```

## Attachments

- [input\_autorepeat.patch](https://ratatoskr.run/linux-input/2008/02/8909428/attachment/0) (text/x-diff, 476 bytes)
