Binds: Difference between revisions
mNo edit summary |
m Minor correction |
||
Line 20: | Line 20: | ||
You can find keycodes [https://github.com/ddnet/ddnet/blob/master/src/engine/client/keynames.h here], or just type the key temporarily into one of the controls in the Settings > Controls page in DDNet client and it will show the key name. You can also use modifier keys with binds. | You can find keycodes [https://github.com/ddnet/ddnet/blob/master/src/engine/client/keynames.h here], or just type the key temporarily into one of the controls in the Settings > Controls page in DDNet client and it will show the key name. You can also use modifier keys with binds. | ||
bind <span style="color:magenta">ctrl+</span><span style="color:green">[key]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> | bind <span style="color:magenta">ctrl+</span><span style="color:green">[key]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> | ||
you can use '''ctrl''', '''alt''', '''shift''', and '''gui'''. '''Gui''' is used to refer to the windows key on windows, the command key on | you can use '''ctrl''', '''alt''', '''shift''', and '''gui'''. '''Gui''' is used to refer to the windows key on windows, the command key on macOS/osx, and super/meta on linux. | ||
===Multiple binds=== <!--T:7--> | ===Multiple binds=== <!--T:7--> | ||
Line 45: | Line 45: | ||
<!--T:12--> | <!--T:12--> | ||
bind <span style="color:green">[key]</span> < | bind <span style="color:green">[key]</span> < | ||
"</span>bind <span style="color:green">[key]</span> | "</span>bind <span style="color:green">[key]</span> | ||
<span style="color:orange">\</span><span style="color:red">"</span><span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span><span style="color:red">;</span> bind <span style="color:green">[key]</span> | <span style="color:orange">\</span><span style="color:red">"</span><span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span><span style="color:red">;</span> bind <span style="color:green">[key]</span> |