Linux Input Archive on lore.kernel.org
 help / color / Atom feed
* Re: config option to change key soft autorepeat behavior
       [not found] <CANC6dXB4HQ6kF=JgahM7hFyGLRPx82zQQe04syqfV16_DDpBiA@mail.gmail.com>
@ 2020-01-10  1:02 ` Dmitry Torokhov
  0 siblings, 0 replies; only message in thread
From: Dmitry Torokhov @ 2020-01-10  1:02 UTC (permalink / raw)
  To: Will Tipton; +Cc: linux-input

Hi Will,

On Wed, Jan 08, 2020 at 01:08:54PM -0800, Will Tipton wrote:
> Hello,
> 
> I'd like to add an option to the input subsystem to change the behavior of
> key repeat. Essentially, when two keyboard keys 'a' and 'b' are held down
> simultaneously, I'd like to get 'abababab...' rather than 'abbbbbbbb...'.
> Another example of a request for this feature is here
> <https://tl.net/forum/sc2-strategy/446530-rapid-fire-hotkey-trick?page=4#64>
> .
> 
> Re: implementation -- I think this is a relatively minor change in
> input.h/.c
> <https://github.com/torvalds/linux/blob/master/drivers/input/input.c#L153>.
> When this kernel option is enabled, the timer and repeat_key
> <https://github.com/torvalds/linux/blob/master/include/linux/input.h#L165>
> members of input_dev are replaced by a container of (timer, key) tuples.
> There's one entry in this container for each currently-pressed key, and
> each entry is basically managed the same way the singular timer and
> repeat_key are managed currently.
> 
> I'm curious whether:
> - a patch adding this feature is likely to be accepted.
> - the implementation strategy I mentioned is the best approach.

Given that most environments (X, Wayland) ignore kernel autorepeat and
implement it themselves (since autorepeat parameters are really more of
a user preferences rather than hardware/system properties), I do not
think we should leave the kernel as is.

Thanks.

-- 
Dmitry

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CANC6dXB4HQ6kF=JgahM7hFyGLRPx82zQQe04syqfV16_DDpBiA@mail.gmail.com>
2020-01-10  1:02 ` config option to change key soft autorepeat behavior Dmitry Torokhov

Linux Input Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-input/0 linux-input/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-input linux-input/ https://lore.kernel.org/linux-input \
		linux-input@vger.kernel.org
	public-inbox-index linux-input

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-input


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git