Summary
Keyboard base class. To be implemented by specific system (i.e. DirectX Keyboard)
This class is useful as you remain OS independent using this common interface.
- Namespace
- SharpInputSystem
.SWF - Interfaces
-
- IDisposable
- Base Types
-
- object
- InputObject
- Keyboard
graph BT
Type-->Base0["Keyboard"]
click Base0 "/sharpinputsystem/api/SharpInputSystem/Keyboard"
Base0-->Base1["InputObject"]
click Base1 "/sharpinputsystem/api/SharpInputSystem/InputObject"
Base1-->Base2["object"]
Type-.->Interface0["IDisposable"]
Type["SWFKeyboard"]
class Type type-node
Syntax
public class SWFKeyboard : Keyboard, IDisposable
Constructors
| Name | Summary |
|---|---|
| SWFKeyboard |
Fields
| Name | Constant Value | Summary |
|---|---|---|
| shiftState |
Inherited from Keyboard
|
Properties
| Name | Value | Summary |
|---|---|---|
| Creator | InputManager |
Returns this input object's creator
Inherited from InputObject
|
| DeviceID | string |
Not fully implemented yet
Inherited from InputObject
|
| EventListener | IKeyboardListener |
Resisters an object to recieve the Keyboard events
Inherited from Keyboard
|
| IsBuffered | bool |
Get buffered mode - true is buffered, false otherwise
Inherited from InputObject
|
| IsDisposed | bool |
Inherited from InputObject
|
| KeyStates | int[] | |
| TextMode | Keyboard |
Inherited from Keyboard
|
| Type | InputType |
Get the type of device
Inherited from InputObject
|
| Vendor | string |
Get the vender string name
Inherited from InputObject
|
Methods
| Name | Value | Summary |
|---|---|---|
| ~InputObject |
void |
Inherited from InputObject
|
| AsString |
string |
Translates KeyCode to string representation.
For example, Key_ENTER will be "Enter" - Locale
specific of course.
|
| Capture |
void |
Used for updating call once per frame before checking state or to update events
|
| Dispose |
void |
Inherited from InputObject
|
| Dispose |
void | |
| Initialize |
void |
|
| IsKeyDown |
bool |
Checks to see if the key is pressed
|
| IsShiftState |
bool |
Checks the Shift Status for the specified keys
Inherited from Keyboard
|
| QueryInterface |
I |
Inherited from InputObject
|