38#ifndef keyboard_control_h_
39#define keyboard_control_h_
71#define K_DOWN 0x1b5b42
72#define K_RIGHT 0x1b5b43
73#define K_LEFT 0x1b5b44
74#define K_PGUP 0x1b5b357e
75#define K_PGDOWN 0x1b5b367e
76#define K_CTRL(x) (1 + ((x) >= 'A' && (x) <= 'Z' ? (x) - 'A' + 'a' : (x)) - 'a')
77#define K_CTRL_UP 0x1b5b313b3541LL
78#define K_CTRL_DOWN 0x1b5b313b3542LL
79#define K_ALT(x) ('\033' << 8 | (x))
81#define MAX_KEYCODE_NAME_LEN 8
std::unique_ptr< impl > m_impl
keyboard_control & operator=(keyboard_control &&)=delete
keyboard_control(struct module *parent)
keyboard_control(keyboard_control &&)=delete
EXTERN_C void get_keycode_name(int64_t ch, char *buf, size_t buflen) __attribute__((used))
EXTERN_C void keycontrol_send_key(struct module *root, int64_t key) __attribute__((used))
EXTERN_C bool keycontrol_register_key(struct module *sender_mod, int64_t key, const char *message, const char *description) __attribute__((used))
Registers callback message for given key.
EXTERN_C void restore_old_tio(void)
struct __attribute__((packed))