Kohi Game Engine
keymap_binding Struct Reference

Represents an individual binding, containing the keybind type, modifiers, callback, potential user data. Doubles as a linked-list node, as keys can have multiple bindings associated with them on the same map. More...

#include <keymap.h>

Data Fields

keymap_entry_bind_type type
 The keybind type (i.e. press, release, hold). Default: KEYMAP_BIND_TYPE_UNDEFINED. More...
 
keymap_modifier modifiers
 Required modifiers, if any. Default: KEYMAP_MODIFIER_NONE_BIT. More...
 
PFN_keybind_callback callback
 A function pointer to be invoked when this binding is triggered. More...
 
void * user_data
 User data, if supplied. Otherwise 0. More...
 
struct keymap_bindingnext
 A pointer to the next binding in the linked list, or 0 if the tail. More...
 

Detailed Description

Represents an individual binding, containing the keybind type, modifiers, callback, potential user data. Doubles as a linked-list node, as keys can have multiple bindings associated with them on the same map.

Field Documentation

◆ callback

A function pointer to be invoked when this binding is triggered.

◆ modifiers

keymap_modifier modifiers

Required modifiers, if any. Default: KEYMAP_MODIFIER_NONE_BIT.

◆ next

struct keymap_binding* next

A pointer to the next binding in the linked list, or 0 if the tail.

◆ type

The keybind type (i.e. press, release, hold). Default: KEYMAP_BIND_TYPE_UNDEFINED.

◆ user_data

void* user_data

User data, if supplied. Otherwise 0.


The documentation for this struct was generated from the following file: