Space Station 13 - Modules - TypesVar Details - Proc Details

keybinding

Vars

categoryThe UI category to belong to.
keysThe default key(s) assigned to the keybind.
nameThe user-facing name.

Procs

can_useReturns whether the keybinding can be pressed by the client's current mob.
downCalled when the client presses the keybind.
should_start_loopingCalled on keybind press to determine looping behaviour. If TRUE is returned, the client will be added to SSinput's processing loop. Use VERY sparingly.
should_stop_loopingCalled on keybind release to determine looping behaviour. If TRUE is returned, the client will be removed from SSinput's processing loop.
upCalled when the client releases the keybind.

Var Details

category

The UI category to belong to.

keys

The default key(s) assigned to the keybind.

name

The user-facing name.

Proc Details

can_use

Returns whether the keybinding can be pressed by the client's current mob.

Arguments:

down

Called when the client presses the keybind.

Arguments:

should_start_looping

Called on keybind press to determine looping behaviour. If TRUE is returned, the client will be added to SSinput's processing loop. Use VERY sparingly.

Arguments:

should_stop_looping

Called on keybind release to determine looping behaviour. If TRUE is returned, the client will be removed from SSinput's processing loop.

Arguments:

up

Called when the client releases the keybind.

Arguments: