patrikzudel / strafe-evaluation

Program that allows you to track your strafe performance! Find out if you would benefit from Snap Tap | SOCD.
GNU General Public License v3.0
49 stars 2 forks source link

Support Alternative Keyboard layouts #3

Open NaunidhDua opened 2 months ago

NaunidhDua commented 2 months ago

I looked at main.rs and I think you support QWERTY and AZERTY layouts. Could you add support for Dvorak layout?

Valve is able to use the raw input somehow, doing this may help to avoid many if statements.

sherwood333 commented 2 months ago

Perhaps listening for scancodes would solve this for 99% of players.

CS2 reports these scancodes for A and D (A and E on dvorak). bind scancode4 "+left" // US English key name "a" bind scancode8 "+right" // US English key name "e"