Files
GS13NG/code/modules/keybindings/keybind/_keybind.dm
silicons ead209f507 sigh
2020-11-27 06:31:05 -07:00

29 lines
728 B
Plaintext

/datum/keybinding
var/list/hotkey_keys
var/list/classic_keys
var/name
var/full_name
var/description = ""
var/category = CATEGORY_MISC
var/weight = WEIGHT_LOWEST
var/keybind_signal
/// Is this a clientside verb trigger? If so, this should be set to the name of the verb.
var/clientside
/// Special - Needs to update special keys on update. clientside implis special.
var/special = FALSE
/datum/keybinding/New()
// Default keys to the master "hotkey_keys"
if(LAZYLEN(hotkey_keys) && !LAZYLEN(classic_keys))
classic_keys = hotkey_keys.Copy()
/datum/keybinding/proc/down(client/user)
return FALSE
/datum/keybinding/proc/up(client/user)
return FALSE
/datum/keybinding/proc/can_use(client/user)
return TRUE