Go: Client¶
Functions¶
RegisterKey¶
| Go | |
|---|---|
RegisterKey binds keys on the client: fn runs with pressed true on press and false on release, and the current focus impact. Client hosts only; a server answers not provided.
- Parameters:
- name :
string - keyCodes :
[]int32 - allowRemap :
bool - fn :
func(pressed bool, impact int32)
- name :
- Return type:
(*KeyBinding, error) - Slots:
client_register_key
KeyBinding¶
KeyBinding is a registered client key binding.
KeyBinding.Unregister¶
| Go | |
|---|---|
Unregister stops the binding's callbacks.
- Return type:
error - Slots:
client_unregister_key
KeyHandle¶
KeyHandle is a registered client key binding.
KeyHandle.IsZero¶
| Go | |
|---|---|
IsZero reports whether the handle names nothing.
- Return type:
bool