1 #ifndef COIN_SOKEYBOARDEVENT_H 
    2 #define COIN_SOKEYBOARDEVENT_H 
   27 #include <Inventor/events/SoButtonEvent.h> 
   32 #define SOKEYBOARDEVENT_UNDEF_DELETE 
   37 #define SO_KEY_PRESS_EVENT(EVENT, KEY) \ 
   38  (SoKeyboardEvent::isKeyPressEvent(EVENT, SoKeyboardEvent::KEY)) 
   40 #define SO_KEY_RELEASE_EVENT(EVENT, KEY) \ 
   41  (SoKeyboardEvent::isKeyReleaseEvent(EVENT, SoKeyboardEvent::KEY)) 
   58     LEFT_SHIFT = 0xffe1, RIGHT_SHIFT, LEFT_CONTROL, RIGHT_CONTROL,
 
   59     LEFT_ALT = 0xffe9, RIGHT_ALT,
 
   61     NUMBER_0 = 0x0030, NUMBER_1, NUMBER_2, NUMBER_3, NUMBER_4, NUMBER_5,
 
   62     NUMBER_6, NUMBER_7, NUMBER_8, NUMBER_9,
 
   64     A = 0x0061, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T,
 
   67     HOME = 0xff50, LEFT_ARROW, UP_ARROW, RIGHT_ARROW, DOWN_ARROW,
 
   68     PAGE_UP, PAGE_DOWN, END,
 
   72     PAD_F1 = 0xff91, PAD_F2, PAD_F3, PAD_F4,
 
   73     PAD_0 = 0xff9e, PAD_1 = 0xff9c, PAD_2 = 0xff99, PAD_3 = 0xff9b,
 
   74     PAD_4 = 0xff96, PAD_5 = 0xff9d, PAD_6 = 0xff98, PAD_7 = 0xff95,
 
   75     PAD_8 = 0xff97, PAD_9 = 0xff9a,
 
   76     PAD_ADD = 0xffab, PAD_SUBTRACT = 0xffad,
 
   77     PAD_MULTIPLY = 0xffaa, PAD_DIVIDE = 0xffaf,
 
   78     PAD_SPACE = 0xff8d, PAD_TAB = 0xff89,
 
   79     PAD_INSERT = 0xff9e, PAD_DELETE = 0xff9f, PAD_PERIOD = 0xff9f,
 
   81     F1 = 0xffbe, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12,
 
   83     BACKSPACE = 0xff08, TAB = 0xff09,
 
   84     RETURN = 0xff0d, ENTER = 0xff0d,
 
   85     PAUSE = 0xff13, SCROLL_LOCK = 0xff14,
 
   86     ESCAPE = 0xff1b, DELETE = 0xffff, KEY_DELETE = DELETE,
 
   87     PRINT = 0xff61, INSERT = 0xff63,
 
   88     NUM_LOCK = 0xff7f, CAPS_LOCK = 0xffe5, SHIFT_LOCK = 0xffe6,
 
   90     SPACE = 0x0020, APOSTROPHE = 0x0027,
 
   91     COMMA = 0x002c, MINUS = 0x002d, PERIOD = 0x002e, SLASH = 0x002f,
 
   92     SEMICOLON = 0x003b, EQUAL = 0x003d,
 
   93     BRACKETLEFT = 0x005b, BACKSLASH = 0x005c,
 
   94     BRACKETRIGHT = 0x005d, GRAVE = 0x0060
 
   98   Key getKey(
void) 
const;
 
  100   void setPrintableCharacter(
const char c);
 
  101   char getPrintableCharacter(
void) 
const;
 
  103   static SbBool isKeyPressEvent(
const SoEvent * e, Key whichKey);
 
  104   static SbBool isKeyReleaseEvent(
const SoEvent * e, Key whichKey);
 
  125 #ifdef SOKEYBOARDEVENT_UNDEF_DELETE 
  126 #define DELETE (0x00010000L) 
  127 #undef SOKEYBOARDEVENT_UNDEF_DELETE 
  128 #endif // SOKEYBOARDEVENT_UNDEF_DELETE 
  130 #endif // !COIN_SOKEYBOARDEVENT_H 
Key
Definition: SoKeyboardEvent.h:54
The SoKeyboardEvent class contains information about keyboard interaction.When the user presses any k...
Definition: SoKeyboardEvent.h:44
The SoEvent class is the base class for all Coin events.Coin contains its own set of event classes...
Definition: SoEvent.h:34
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:42