Author Topic: How to hold 2 keys and make them both repeat?  (Read 2073 times)

0 Members and 1 Guest are viewing this topic.

Offline crysar

  • Thread Starter
  • Posts: 1
How to hold 2 keys and make them both repeat?
« on: Wed, 02 September 2020, 05:12:04 »
Hi guys,

This is going to be a very specific question, but I'll try to explain it as best I can.

I have noticed on some keyboards, pressing and holding 2 keys will type both letters alternating, e.g "asasasasas" but requires a very precise timing the key press, otherwise it will come out like "saaaaaaaaaa" etc.

I've also noticed on some other keyboards, the timing to achieve this doesn't need to be so precise, and achieving an "asasasasas" result is much easier.

I was wondering what causes this and if there was a way to deliberately cause this behaviour, because in a game I play, there is a mechanic which benefits off 2 keys registering at the same time, and while this can be achieved using sticky keys, using the modifier keys is not comfortable and I'd prefer if I could do this on any 2 key combination.

Thanks

Offline yui

  • Posts: 1082
  • Location: 127.0.0.1 (in azerty)
Re: How to hold 2 keys and make them both repeat?
« Reply #1 on: Wed, 02 September 2020, 05:25:32 »
i think it is typematic, and it is nowadays implemented in windows, so any normal keyboard should send the key-down event and then windows/driver handle what it should do until the key-up event. so maybe with your timing you are disrupting the driver, or you may have a keyboard with firmware typematic, were the keyboard will send the down and up event in rapid succession when the key is held and then here who knows if it is meant to work like that or a bug in the code. or it could be a "bouncy" key where the switch is worn and makes bad contact, but that would happen on only one key.
and pretty much all keyboards are able to at least send multiple key codes at once, 5 on usb-hid default mode, and a theoretically infinite for nkey rollover mode and ps/2, the OS and game are the one deciding how to interpret all of that.
vi vi vi - the roman number of the beast (Plan9 fortune)