diff options
author | David Robillard <d@drobilla.net> | 2008-08-12 00:20:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-12 00:20:16 +0000 |
commit | 102e899c331bd2ed9902467a077164e209c918f9 (patch) | |
tree | b7fe5ec873582cc8a0fc0862f9da045d12b2259a /vstgui/vstkeycode.h | |
parent | 2b679f152e1c3104ac178b6c78ac0b1edf954ff6 (diff) | |
download | mda.lv2-102e899c331bd2ed9902467a077164e209c918f9.tar.gz mda.lv2-102e899c331bd2ed9902467a077164e209c918f9.tar.bz2 mda.lv2-102e899c331bd2ed9902467a077164e209c918f9.zip |
VSTUI X11 port and embeddable GTK wrapper.
Build mdaSpecMeter and GUI.
git-svn-id: http://svn.drobilla.net/lad/mda-lv2@1340 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'vstgui/vstkeycode.h')
-rw-r--r-- | vstgui/vstkeycode.h | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/vstgui/vstkeycode.h b/vstgui/vstkeycode.h new file mode 100644 index 0000000..1eba98c --- /dev/null +++ b/vstgui/vstkeycode.h @@ -0,0 +1,104 @@ +/* ---------------------------------------------------------------------------- + * VSTGUI for X11/LV2/PNG + * Author: Dave Robillard + * Released under the revised BSD license, as below + * ---------------------------------------------------------------------------- + * + * Based on: + * ---------------------------------------------------------------------------- + * VST Plug-Ins SDK Linux ONLY Port + * VSTGUIL: Graphical User Interface Framework for VST plugins on LINUX + * Version: 0.1, Date: 2007/01/21 + * Author: kRAkEn/gORe + * ---------------------------------------------------------------------------- + */ + +#ifndef __vstkeycode__ +#define __vstkeycode__ + + +/** Structure and enum used for keyUp/keyDown */ +struct VstKeyCode +{ + long character; + unsigned char virt; ///< see enum VstVirtualKey + unsigned char modifier; ///< see enum VstModifierKey +}; + + +/** Used by member virt of VstKeyCode */ +enum VstVirtualKey +{ + VKEY_BACK = 1, + VKEY_TAB, + VKEY_CLEAR, + VKEY_RETURN, + VKEY_PAUSE, + VKEY_ESCAPE, + VKEY_SPACE, + VKEY_NEXT, + VKEY_END, + VKEY_HOME, + + VKEY_LEFT, + VKEY_UP, + VKEY_RIGHT, + VKEY_DOWN, + VKEY_PAGEUP, + VKEY_PAGEDOWN, + + VKEY_SELECT, + VKEY_PRINT, + VKEY_ENTER, + VKEY_SNAPSHOT, + VKEY_INSERT, + VKEY_DELETE, + VKEY_HELP, + VKEY_NUMPAD0, + VKEY_NUMPAD1, + VKEY_NUMPAD2, + VKEY_NUMPAD3, + VKEY_NUMPAD4, + VKEY_NUMPAD5, + VKEY_NUMPAD6, + VKEY_NUMPAD7, + VKEY_NUMPAD8, + VKEY_NUMPAD9, + VKEY_MULTIPLY, + VKEY_ADD, + VKEY_SEPARATOR, + VKEY_SUBTRACT, + VKEY_DECIMAL, + VKEY_DIVIDE, + VKEY_F1, + VKEY_F2, + VKEY_F3, + VKEY_F4, + VKEY_F5, + VKEY_F6, + VKEY_F7, + VKEY_F8, + VKEY_F9, + VKEY_F10, + VKEY_F11, + VKEY_F12, + VKEY_NUMLOCK, + VKEY_SCROLL, + + VKEY_SHIFT, + VKEY_CONTROL, + VKEY_ALT, + + VKEY_EQUALS +}; + +/** Used by member modifier of VstKeyCode */ +enum VstModifierKey +{ + MODIFIER_SHIFT = 1<<0, ///< Shift + MODIFIER_ALTERNATE = 1<<1, ///< Alt + MODIFIER_COMMAND = 1<<2, ///< Control on Mac + MODIFIER_CONTROL = 1<<3 ///< Ctrl on PC, Apple on Mac +}; + +#endif |