2,113
edits
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
== Associations == | == Associations == | ||
*Key bindings are global, and not a part of any context. | * Key bindings are global, and not a part of any context. | ||
== Details == | == Details == | ||
Line 39: | Line 39: | ||
=== Key states === | === Key states === | ||
* ' | * '+zoom' called without a value. No command, variable or alias named '+zoom' exist. | ||
<kua> | <kua> | ||
> | > +zoom | ||
Unknown: | Unknown: +zoom | ||
</kua> | </kua> | ||
* Create an alias ' | * Create an alias for '+zoom' and '-zoom'. | ||
<kua> | <kua> | ||
> alias | > alias +zoom "set fov 45; print 'zoom is 45'" | ||
> alias -zoom "set fov 90; print 'zoom is 90'" | |||
</kua> | </kua> | ||
* | * Create a binding for the 'Z' key. | ||
<kua> | <kua> | ||
> | > bind Z +zoom | ||
</kua> | </kua> | ||
* | * Close console and press and release the 'Z' key. Zooms in and out and prints zoom messages. | ||
<kua> | <kua> | ||
zoom is 45 | |||
zoom is 90 | |||
</kua> | </kua> | ||
== Notes == | == Notes == | ||
* | * |