51#ifndef _SO_KEYBOARD_EVENT_
52#define _SO_KEYBOARD_EVENT_
59#define SO_KEY_PRESS_EVENT(EVENT,KEY) \
60 (SoKeyboardEvent::isKeyPressEvent(EVENT,SoKeyboardEvent::KEY))
62#define SO_KEY_RELEASE_EVENT(EVENT,KEY) \
63 (SoKeyboardEvent::isKeyReleaseEvent(EVENT,SoKeyboardEvent::KEY))
374#ifndef HIDDEN_FROM_DOC
421 static void initClass();
422 static void exitClass();
#define SO_EVENT_HEADER()
Base class for all events.
Keyboard key press and release events.
void setKey(SoKeyboardEvent::Key whichKey)
Sets which key generated the event.
SoKeyboardEvent::Key getKey() const
Gets which key generated the event.
static SbBool isKeyPressEvent(const SoEvent *e, SoKeyboardEvent::Key whichKey)
Returns whether the passed event is a keyboard press event of the passed key.
static SbBool isKeyReleaseEvent(const SoEvent *e, SoKeyboardEvent::Key whichKey)
Returns whether the passed event is a keyboard release event of the passed key.
char getPrintableCharacter() const
Convenience routine that returns the character representing the key, if it's printable.
void setUnicode(wchar_t unicode)
Call this function to set the unicode value of the pressed key.
wchar_t getUnicode() const
Return the unicode value of the pressed key, or 0 if setUnicode() wasn't call before.
@ BRACKETLEFT
Bracket left.
@ TWO_SUPERIOR
Power of two key.
@ PAD_MULTIPLY
Pad multiply.
@ LEFT_CONTROL
Left control.
@ RIGHT_CONTROL
Right control.
@ LEFT_META
Left Windows Logo key also known as Super_L.
@ ANY
Special constant for any key.
@ BRACKETRIGHT
Bracket right.
@ DELETE
SoKeyboardEvent::DELETE is deprecated Use KEY_DELETE instead of DELETE.
@ SCROLL_LOCK
Scroll lock.
@ PAD_SUBTRACT
Pad substract.
@ RIGHT_SHIFT
Right shift.
@ RIGHT_META
Right Windows Logo key also known as Super_R.
SoKeyboardEvent()
Constructor.