nongnu.org/gsequencer


gsequencer 7.0.5
Advanced Gtk+ Sequencer
ags_vst_keycodes.h
Go to the documentation of this file.
1/* GSequencer - Advanced GTK Sequencer
2 * Copyright (C) 2005-2021 Joël Krähemann
3 *
4 * This file is part of GSequencer.
5 *
6 * GSequencer is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * GSequencer is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with GSequencer. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef __AGS_VST_KEYCODES_H__
21#define __AGS_VST_KEYCODES_H__
22
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29 typedef enum
30 {
41
48
86
90
91 AGS_VST_KEY_EQUALS, // only occurs on a Mac
92 AGS_VST_KEY_CONTEXTMENU, // Windows only
93
94 // multimedia keys
101
109
112
114 /*
115 AGS_VST_KEY_0 - AGS_VST_KEY_9 are the same as ASCII '0' - '9' (0x30 - 0x39) + AGS_VST_FIRST_ASCII
116 AGS_VST_KEY_A - AGS_VST_KEY_Z are the same as ASCII 'A' - 'Z' (0x41 - 0x5A) + AGS_VST_FIRST_ASCII
117 */
119
127
128 typedef struct AgsVstKeyCode KeyCode;
129
130 gunichar2 ags_vst_keycodes_virtual_key_code_to_char(guint8 vkey);
131 guint8 ags_vst_keycodes_char_to_virtual_key_code(gunichar2 character);
132
133#ifdef __cplusplus
134}
135#endif
136
137#endif /*__AGS_VST_KEYCODES_H__*/
struct AgsVstKeyCode KeyCode
Definition ags_vst_keycodes.h:128
gunichar2 ags_vst_keycodes_virtual_key_code_to_char(guint8 vkey)
Definition ags_vst_keycodes.cpp:34
AgsVstVirtualKeyCodes
Definition ags_vst_keycodes.h:30
@ AGS_VST_KEY_F4
Definition ags_vst_keycodes.h:75
@ AGS_VST_KEY_DELETE
Definition ags_vst_keycodes.h:54
@ AGS_VST_KEY_NUMPAD2
Definition ags_vst_keycodes.h:58
@ AGS_VST_KEY_INSERT
Definition ags_vst_keycodes.h:53
@ AGS_VST_KEY_END
Definition ags_vst_keycodes.h:39
@ AGS_VST_KEY_F3
Definition ags_vst_keycodes.h:74
@ AGS_VST_KEY_LEFT
Definition ags_vst_keycodes.h:42
@ AGS_VST_KEY_F14
Definition ags_vst_keycodes.h:103
@ AGS_VST_KEY_SNAPSHOT
Definition ags_vst_keycodes.h:52
@ AGS_VST_KEY_RETURN
Definition ags_vst_keycodes.h:34
@ AGS_VST_KEY_F2
Definition ags_vst_keycodes.h:73
@ AGS_VST_KEY_HELP
Definition ags_vst_keycodes.h:55
@ AGS_VST_KEY_F1
Definition ags_vst_keycodes.h:72
@ AGS_VST_KEY_NUMPAD3
Definition ags_vst_keycodes.h:59
@ AGS_VST_KEY_F13
Definition ags_vst_keycodes.h:102
@ AGS_VST_KEY_NUMPAD8
Definition ags_vst_keycodes.h:64
@ AGS_VST_KEY_PAGEDOWN
Definition ags_vst_keycodes.h:47
@ AGS_VST_KEY_F16
Definition ags_vst_keycodes.h:105
@ AGS_VST_KEY_SPACE
Definition ags_vst_keycodes.h:37
@ AGS_VST_KEY_ADD
Definition ags_vst_keycodes.h:67
@ AGS_VST_KEY_NUMPAD6
Definition ags_vst_keycodes.h:62
@ AGS_VST_KEY_F18
Definition ags_vst_keycodes.h:107
@ AGS_VST_KEY_F19
Definition ags_vst_keycodes.h:108
@ AGS_VST_KEY_F12
Definition ags_vst_keycodes.h:83
@ AGS_VST_KEY_F5
Definition ags_vst_keycodes.h:76
@ AGS_VST_KEY_VOLUME_DOWN
Definition ags_vst_keycodes.h:100
@ AGS_VST_KEY_SELECT
Definition ags_vst_keycodes.h:49
@ AGS_VST_KEY_NUMLOCK
Definition ags_vst_keycodes.h:84
@ AGS_VST_KEY_MEDIA_NEXT
Definition ags_vst_keycodes.h:98
@ AGS_VST_KEY_MEDIA_PREV
Definition ags_vst_keycodes.h:97
@ AGS_VST_KEY_F9
Definition ags_vst_keycodes.h:80
@ AGS_VST_KEY_PRINT
Definition ags_vst_keycodes.h:50
@ AGS_VST_KEY_RIGHT
Definition ags_vst_keycodes.h:44
@ AGS_VST_KEY_MEDIA_PLAY
Definition ags_vst_keycodes.h:95
@ AGS_VST_KEY_DOWN
Definition ags_vst_keycodes.h:45
@ AGS_VST_KEY_MULTIPLY
Definition ags_vst_keycodes.h:66
@ AGS_VST_KEY_ALT
Definition ags_vst_keycodes.h:89
@ AGS_VST_KEY_NUMPAD5
Definition ags_vst_keycodes.h:61
@ AGS_VST_KEY_UP
Definition ags_vst_keycodes.h:43
@ AGS_VST_KEY_F15
Definition ags_vst_keycodes.h:104
@ AGS_VST_KEY_NEXT
Definition ags_vst_keycodes.h:38
@ AGS_VST_KEY_SCROLL
Definition ags_vst_keycodes.h:85
@ AGS_VST_KEY_NUMPAD1
Definition ags_vst_keycodes.h:57
@ AGS_VST_KEY_F11
Definition ags_vst_keycodes.h:82
@ AGS_VST_KEY_F10
Definition ags_vst_keycodes.h:81
@ AGS_VST_KEY_F17
Definition ags_vst_keycodes.h:106
@ AGS_VST_KEY_TAB
Definition ags_vst_keycodes.h:32
@ AGS_VST_KEY_NUMPAD9
Definition ags_vst_keycodes.h:65
@ AGS_VST_KEY_F8
Definition ags_vst_keycodes.h:79
@ AGS_VST_KEY_PAGEUP
Definition ags_vst_keycodes.h:46
@ AGS_VST_KEY_VOLUME_UP
Definition ags_vst_keycodes.h:99
@ AGS_VST_KEY_NUMPAD7
Definition ags_vst_keycodes.h:63
@ AGS_VST_KEY_SEPARATOR
Definition ags_vst_keycodes.h:68
@ AGS_VST_KEY_MEDIA_STOP
Definition ags_vst_keycodes.h:96
@ AGS_VST_KEY_CONTROL
Definition ags_vst_keycodes.h:88
@ AGS_VST_KEY_NUMPAD0
Definition ags_vst_keycodes.h:56
@ AGS_VST_VKEY_LAST_CODE
Definition ags_vst_keycodes.h:111
@ AGS_VST_KEY_CLEAR
Definition ags_vst_keycodes.h:33
@ AGS_VST_KEY_ESCAPE
Definition ags_vst_keycodes.h:36
@ AGS_VST_KEY_EQUALS
Definition ags_vst_keycodes.h:91
@ AGS_VST_VKEY_FIRST_ASCII
Definition ags_vst_keycodes.h:113
@ AGS_VST_KEY_DECIMAL
Definition ags_vst_keycodes.h:70
@ AGS_VST_KEY_HOME
Definition ags_vst_keycodes.h:40
@ AGS_VST_VKEY_FIRST_CODE
Definition ags_vst_keycodes.h:110
@ AGS_VST_KEY_F7
Definition ags_vst_keycodes.h:78
@ AGS_VST_KEY_SUBTRACT
Definition ags_vst_keycodes.h:69
@ AGS_VST_KEY_PAUSE
Definition ags_vst_keycodes.h:35
@ AGS_VST_KEY_BACK
Definition ags_vst_keycodes.h:31
@ AGS_VST_KEY_DIVIDE
Definition ags_vst_keycodes.h:71
@ AGS_VST_KEY_CONTEXTMENU
Definition ags_vst_keycodes.h:92
@ AGS_VST_KEY_ENTER
Definition ags_vst_keycodes.h:51
@ AGS_VST_KEY_F6
Definition ags_vst_keycodes.h:77
@ AGS_VST_KEY_SHIFT
Definition ags_vst_keycodes.h:87
@ AGS_VST_KEY_NUMPAD4
Definition ags_vst_keycodes.h:60
AgsVstKeyModifier
Definition ags_vst_keycodes.h:121
@ AGS_VST_KCOMMAND_KEY
windows ctrl key; mac cmd key (apple button)
Definition ags_vst_keycodes.h:124
@ AGS_VST_KSHIFT_KEY
same on both PC and Mac
Definition ags_vst_keycodes.h:122
@ AGS_VST_KALTERNATE_KEY
same on both PC and Mac
Definition ags_vst_keycodes.h:123
@ AGS_VST_KCONTROL_KEY
windows: not assigned, mac: ctrl key
Definition ags_vst_keycodes.h:125
guint8 ags_vst_keycodes_char_to_virtual_key_code(gunichar2 character)
Definition ags_vst_keycodes.cpp:47