Goonstation 13 - Modules - TypesProc Details

/datum/keymap

Procs

key_bitflag_to_stringdescConverts from bitflag to a human-readable description Example: "2" to "KEY_BACKWARD"
key_string_to_descConverts from code-readable action names to human-readable Example: "l_arm" to "Target Left Arm"
mergeMerges two keymaps together. Will overwrite existing entries sharing the same key.
overwrite_by_actionOverwrites existing entries from given keymap, matching on the action and not the key. Performance sucks on this.
parse_actionIntermediate proc to check if an action is a bitflag or not before parsing it.
parse_keybindChecks the input key and converts it to a usable format Wants input in the format "CTRL+F", as an example.
unparse_keybindConverts the given usable format to a readable format Wants input in the format "0NORTH" or "5D", as an example.

Proc Details

key_bitflag_to_stringdesc

Converts from bitflag to a human-readable description Example: "2" to "KEY_BACKWARD"

key_string_to_desc

Converts from code-readable action names to human-readable Example: "l_arm" to "Target Left Arm"

merge

Merges two keymaps together. Will overwrite existing entries sharing the same key.

overwrite_by_action

Overwrites existing entries from given keymap, matching on the action and not the key. Performance sucks on this.

parse_action

Intermediate proc to check if an action is a bitflag or not before parsing it.

parse_keybind

Checks the input key and converts it to a usable format Wants input in the format "CTRL+F", as an example.

unparse_keybind

Converts the given usable format to a readable format Wants input in the format "0NORTH" or "5D", as an example.