github.com/256dpi/max-go@v0.7.0/lib/max/max_keydefs.h (about) 1 #ifndef _MAX_KEYDEFS_H_ 2 #define _MAX_KEYDEFS_H_ 3 4 /** Bit mask values for various meta-key presses on the keyboard. 5 @ingroup jmouse */ 6 typedef enum _modifiers { 7 eCommandKey = 1, ///< Command Key 8 eShiftKey = 2, ///< Shift Key 9 eControlKey = 4, ///< Control Key 10 eAltKey = 8, ///< Alt Key 11 eLeftButton = 16, ///< Left mouse button 12 eRightButton = 32, ///< Right mouse button 13 eMiddleButton = 64, ///< Middle mouse button 14 ePopupMenu = 128, ///< Popup Menu (contextual menu requested) 15 eCapsLock = 256, ///< Caps lock 16 eAutoRepeat = 512 ///< Key is generated by key press auto-repeat 17 } t_modifiers; 18 19 // key codes 20 // key/keyup objects fourth outlet and key message to objects uses 21 // the following values for keycodes 22 typedef enum _keycode { 23 // keycode is ascii value with modifiers stripped 24 // a-z keys thus report lowercase keycode regardless of shift key or capslock state 25 JKEY_NONE = -1, 26 JKEY_SPACEBAR = -2, 27 JKEY_ESC = -3, 28 JKEY_RETURN = -4, 29 JKEY_ENTER = -4, // same as JKEY_RETURN 30 JKEY_TAB = -5, 31 JKEY_DELETE = -6, 32 JKEY_BACKSPACE = -7, 33 JKEY_INSERT = -8, 34 JKEY_UPARROW = -9, 35 JKEY_DOWNARROW = -10, 36 JKEY_LEFTARROW = -11, 37 JKEY_RIGHTARROW = -12, 38 JKEY_PAGEUP = -13, 39 JKEY_PAGEDOWN = -14, 40 JKEY_HOME = -15, 41 JKEY_END = -16, 42 JKEY_F1 = -17, 43 JKEY_F2 = -18, 44 JKEY_F3 = -19, 45 JKEY_F4 = -20, 46 JKEY_F5 = -21, 47 JKEY_F6 = -22, 48 JKEY_F7 = -23, 49 JKEY_F8 = -24, 50 JKEY_F9 = -25, 51 JKEY_F10 = -26, 52 JKEY_F11 = -27, 53 JKEY_F12 = -28, 54 JKEY_F13 = -29, 55 JKEY_F14 = -30, 56 JKEY_F15 = -31, 57 JKEY_F16 = -32, 58 JKEY_NUMPAD0 = -33, 59 JKEY_NUMPAD1 = -34, 60 JKEY_NUMPAD2 = -35, 61 JKEY_NUMPAD3 = -36, 62 JKEY_NUMPAD4 = -37, 63 JKEY_NUMPAD5 = -38, 64 JKEY_NUMPAD6 = -39, 65 JKEY_NUMPAD7 = -40, 66 JKEY_NUMPAD8 = -41, 67 JKEY_NUMPAD9 = -42, 68 JKEY_NUMPADADD = -43, 69 JKEY_NUMPADSUBTRACT = -44, 70 JKEY_NUMPADMULTIPLY = -45, 71 JKEY_NUMPADDIVIDE = -46, 72 JKEY_NUMPADSEPARATOR = -47, 73 JKEY_NUMPADDECIMALPOINT = -48, 74 JKEY_NUMPADEQUALS = -49, 75 JKEY_NUMPADDELETE = -50, 76 JKEY_PLAYPAUSE = -51, 77 JKEY_STOP = -52, 78 JKEY_NEXTTRACK = -53, 79 JKEY_PREVTRACK = -54, 80 JKEY_HELP = -55 81 } t_keycode; 82 83 84 #endif // #ifndef _MAX_KEYDEFS_H_