1 #ifndef COIN_SOKEYBOARDEVENT_H 2 #define COIN_SOKEYBOARDEVENT_H 36 #include <Inventor/events/SoButtonEvent.h> 41 #define SOKEYBOARDEVENT_UNDEF_DELETE 46 #define SO_KEY_PRESS_EVENT(EVENT, KEY) \ 47 (SoKeyboardEvent::isKeyPressEvent(EVENT, SoKeyboardEvent::KEY)) 49 #define SO_KEY_RELEASE_EVENT(EVENT, KEY) \ 50 (SoKeyboardEvent::isKeyReleaseEvent(EVENT, SoKeyboardEvent::KEY)) 67 LEFT_SHIFT = 0xffe1, RIGHT_SHIFT, LEFT_CONTROL, RIGHT_CONTROL,
68 LEFT_ALT = 0xffe9, RIGHT_ALT,
70 NUMBER_0 = 0x0030, NUMBER_1, NUMBER_2, NUMBER_3, NUMBER_4, NUMBER_5,
71 NUMBER_6, NUMBER_7, NUMBER_8, NUMBER_9,
73 A = 0x0061, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T,
76 HOME = 0xff50, LEFT_ARROW, UP_ARROW, RIGHT_ARROW, DOWN_ARROW,
77 PAGE_UP, PAGE_DOWN, END,
81 PAD_F1 = 0xff91, PAD_F2, PAD_F3, PAD_F4,
82 PAD_0 = 0xff9e, PAD_1 = 0xff9c, PAD_2 = 0xff99, PAD_3 = 0xff9b,
83 PAD_4 = 0xff96, PAD_5 = 0xff9d, PAD_6 = 0xff98, PAD_7 = 0xff95,
84 PAD_8 = 0xff97, PAD_9 = 0xff9a,
85 PAD_ADD = 0xffab, PAD_SUBTRACT = 0xffad,
86 PAD_MULTIPLY = 0xffaa, PAD_DIVIDE = 0xffaf,
87 PAD_SPACE = 0xff8d, PAD_TAB = 0xff89,
88 PAD_INSERT = 0xff9e, PAD_DELETE = 0xff9f, PAD_PERIOD = 0xff9f,
90 F1 = 0xffbe, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12,
92 BACKSPACE = 0xff08, TAB = 0xff09,
93 RETURN = 0xff0d, ENTER = 0xff0d,
94 PAUSE = 0xff13, SCROLL_LOCK = 0xff14,
95 ESCAPE = 0xff1b, DELETE = 0xffff, KEY_DELETE = DELETE,
96 PRINT = 0xff61, INSERT = 0xff63,
97 NUM_LOCK = 0xff7f, CAPS_LOCK = 0xffe5, SHIFT_LOCK = 0xffe6,
99 SPACE = 0x0020, APOSTROPHE = 0x0027,
100 COMMA = 0x002c, MINUS = 0x002d, PERIOD = 0x002e, SLASH = 0x002f,
101 SEMICOLON = 0x003b, EQUAL = 0x003d,
102 BRACKETLEFT = 0x005b, BACKSLASH = 0x005c,
103 BRACKETRIGHT = 0x005d, GRAVE = 0x0060
106 void setKey(
Key key);
107 Key getKey(
void)
const;
109 void setPrintableCharacter(
const char c);
110 char getPrintableCharacter(
void)
const;
112 static SbBool isKeyPressEvent(
const SoEvent * e,
Key whichKey);
113 static SbBool isKeyReleaseEvent(
const SoEvent * e,
Key whichKey);
134 #ifdef SOKEYBOARDEVENT_UNDEF_DELETE 135 #define DELETE (0x00010000L) 136 #undef SOKEYBOARDEVENT_UNDEF_DELETE 137 #endif // SOKEYBOARDEVENT_UNDEF_DELETE 139 #endif // !COIN_SOKEYBOARDEVENT_H
Key
Definition: SoKeyboardEvent.h:63
The SoKeyboardEvent class contains information about keyboard interaction.When the user presses any k...
Definition: SoKeyboardEvent.h:53
The SoEvent class is the base class for all Coin events.Coin contains its own set of event classes...
Definition: SoEvent.h:44
The SbString class is a string class with convenience functions for string operations.This is the class used for storing and working with character strings. It automatically takes care of supporting all the "bookkeeping" tasks usually associated with working with character strings, like memory allocation and deallocation etc.
Definition: SbString.h:52