Skip to content

Basic gaming config

cajhin edited this page Jan 28, 2021 · 14 revisions

I always play with a controller, so I don't have a battle tested gaming config.

Here's some things you might want to use.

Move WASD to IJKL, and CapsLock to RightAlt

Pressing I results in W, and so on. RightAlt is now a second CapsLock key.

GLOBAL capsicainOnOffKey SCRLOCK 

[config_1]
REWIRE I W
REWIRE J A
REWIRE K S
REWIRE L D
REWIRE RALT CAPS

The special thing about gaming is that you don't need a complete keyboard.
With this config, you have two 'W' keys and no 'I', but it doesn't matter while you're in the game.

You have to switch back to 'normal keyboard' to type text.
The GLOBAL line lets you turn capsicain on and off with the ScrollLock key. See Keyword: GLOBAL for details.

You can always press ESC+0 to disable, and ESC+1 to enable.

Multiple configs

You may want to have a different config for each game.
If gameA uses "Jump = T" and gameB uses "Jump = Control", then you could choose your own "Jump = Space", and map Space for each game.

Extra config so LCtrl + F1/F2/F3 lets you switch the configs.
You can always switch to a config with ESC + 1..9, without specifying anything.

[config_1]
OPTION configName Regular_keyboard
COMBO F2  [&.] > configSwitch(2)
COMBO F3  [&.] > configSwitch(3)

[config_2]
OPTION configName Witcher3
REWIRE Space T
COMBO F1  [&.] > configSwitch(1)
COMBO F3  [&.] > configSwitch(3)

[config_3]
OPTION configName RDR2
REWIRE Space LCtrl
COMBO F1  [&.] > configSwitch(1)
COMBO F2  [&.] > configSwitch(2)

Note: you could use the plain, unmodified F1-F3 keys to switch, with COMBO F1 [] > configSwitch(1), but then you no longer have a working F1 key.

Also: beware of accidental config changes (like: hit Escape, accidentally hit F1, too, suddenly all your Spaces turn into Controls). This will really mess with your head until you understand what just happened.

Note: this example uses a "normal keyboard" config_1 instead of an ON/OFF key. This allows you to define nice shortcuts outside of games.

[&.] is a Modifier Strings, an advanced topic.

A quick first summary is:

    [] means 'I don't care about modifiers
   [&] means 'and Left Shift is down'
  [&.] 'and Left Control is down'
 [&..] 'and Left Win is down'
[&...] 'and Left Alt is down'

[&..&] 'and Left Shift and Left Alt is down'

Debug mode

Debug output is toggled with ESC+D. Processing a key takes about two milliseconds with debug on, and 0.02 milliseconds with debug off; so if you're ultra serious about your input lag, turn debugging off before you enter the World championship finals.