GrafX2 2.9.3227
The ultimate 256-color painting program
keyboard.c File Reference
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "global.h"
#include "keyboard.h"
#include "keycodes.h"
#include "gfx2log.h"
+ Include dependency graph for keyboard.c:

Macros

#define META_KEY_PREFIX   "Super+"
 

Functions

const char * Key_name (word key)
 Returns key name in a string. More...
 
word Key_for_scancode (word scancode)
 Helper function to convert between SDL system and the old coding for PC keycodes. More...
 
word Get_Key_modifiers (void)
 Gets the Key modifiers in our format Returns a combination of GFX2_MOD_SHIFT, GFX2_MOD_ALT, GFX2_MOD_CTRL. More...
 

Macro Definition Documentation

◆ META_KEY_PREFIX

#define META_KEY_PREFIX   "Super+"

Function Documentation

◆ Key_name()

◆ Key_for_scancode()

word Key_for_scancode ( word  scancode)

Helper function to convert between SDL system and the old coding for PC keycodes.

This is only used to convert configuration files from the DOS version of Grafx2, where keyboard codes are in in the IBM PC AT form.

Parameters
scancodeScancode to convert

Referenced by Load_CFG().

◆ Get_Key_modifiers()