GrafX2 2.9.3227
The ultimate 256-color painting program
hotkeys.h File Reference

Definition of the tables used by the keyboard shortcuts. More...

#include <stdbool.h>
+ Include dependency graph for hotkeys.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  T_Key_config
 

Macros

#define NB_SHORTCUTS   212
 Number of actions that can have a key combination associated to it. More...
 

Variables

T_Key_config ConfigKey [NB_SHORTCUTS]
 Table with all the configurable shortcuts, whether they are for a menu button or a special action. More...
 
word Ordering [NB_SHORTCUTS]
 Translation table from a shortcut index to a shortcut identifier. More...
 

Detailed Description

Definition of the tables used by the keyboard shortcuts.

The actual data is in hotkeys.c

Macro Definition Documentation

◆ NB_SHORTCUTS

#define NB_SHORTCUTS   212

Number of actions that can have a key combination associated to it.

Variable Documentation

◆ ConfigKey

T_Key_config ConfigKey[NB_SHORTCUTS]
extern

Table with all the configurable shortcuts, whether they are for a menu button or a special action.

Referenced by Find_default_shortcut(), Load_CFG(), Save_CFG(), Set_config_defaults(), and Window_set_shortcut().

◆ Ordering

word Ordering[NB_SHORTCUTS]
extern

Translation table from a shortcut index to a shortcut identifier.

The value is either:

  • 0x000 + special shortcut number
  • 0x100 + button number (left click)
  • 0x200 + button number (right click)

Referenced by Find_default_shortcut(), Load_CFG(), Remove_duplicate_shortcuts(), Save_CFG(), Set_config_defaults(), and Window_set_shortcut().