Bindevent (Cmd)

From Doomsday Wiki
Jump to: navigation, search


Bind a console command to an event.



bindevent [ context ] spec command

The event specification spec is composed of an event descriptor and optionally any additional conditions for the validity of the binding. The specification may be prefixed with a context name; if omitted, the binding is created in the default "game" context.


bindevent key-M-down "toggle ctl-run"
bindevent "mouse-right-up + key-shift" {print "RMB released while Shift down"}
bindevent shortcut:key-f8 "toggle msg-show"
bindevent key-equals-down "add view-size 1"
bindevent key-equals-repeat "add view-size 1"

See also