| SoKeyboardEvent Class |
Keyboard key press and release events.
Namespace: OIV.Inventor.Events
The SoKeyboardEvent type exposes the following members.
| Name | Description | |
|---|---|---|
| SoKeyboardEvent | Constructor. |
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
| GetKey | Gets which key generated the event. | |
| GetNormalizedPosition | Gets the normalized location of the cursor when the event occurred, relative to the specified viewport region. | |
| GetPosition | Returns the window pixel location of the cursor when the event occurred as integer values. | |
| GetPosition(SbViewportRegion) | Gets the viewport pixel location of the cursor when the event occurred, relative to the origin of the specified viewport region, as integer values. | |
| GetPositionFloat | Returns the window pixel location of the cursor when the event occurred as float values. | |
| GetPositionFloat(SbViewportRegion) | Gets the viewport pixel location of the cursor when the event occurred, relative to the origin of the specified viewport region, as float values. | |
| GetPrintableCharacter | Convenience routine that returns the character representing the key, if it's printable. | |
| GetState | Gets the state of the button. | |
| GetTime | Gets the time at which the event occurred. | |
| GetTrackerInfo | Gets whether an event object has associated tracker information. | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsKeyPressEvent | Returns whether the passed event is a keyboard press event of the passed key. | |
| IsKeyReleaseEvent | Returns whether the passed event is a keyboard release event of the passed key. | |
| SetAltDown | Sets whether the ALT key was down when the event occurred. | |
| SetButton1Down | Sets whether mouse Button 1 was down when the event occurred. | |
| SetCtrlDown | Sets whether the CTRL key was down when the event occurred. | |
| SetKey | Sets which key generated the event. | |
| SetPosition(SbVec2f) | Float version of setPosition(const SbVec2s &p). | |
| SetPosition(SbVec2s) | Sets the window pixel location of the cursor when the event occurred. | |
| SetShiftDown | Sets whether the shift key was down when the event occurred. | |
| SetState | Sets the state of the button. | |
| SetTime | Sets the time at which the event occurred. | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| WasAltDown | Returns true if the ALT key was down when the event occurred. | |
| WasButton1Down | Returns true if mouse button 1 was down when the event occurred. | |
| WasCtrlDown | Returns true if the CTRL key was down when the event occurred. | |
| WasShiftDown | Returns true if the shift key was down when the event occurred. |
SoKeyboardEvent represents keyboard key press and release events in the Open Inventor event model.
Add an SoEventCallback node to the scene graph to handle Open Inventor events.