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
- Interfaces
-
- IDisposable
- Base Types
-
- object
- InputObject
- Derived Types
graph BT
Type-->Base0["InputObject"]
click Base0 "/sharpinputsystem/api/SharpInputSystem/InputObject"
Base0-->Base1["object"]
Type-.->Interface0["IDisposable"]
Type["Keyboard"]
class Type type-node
Derived0["AndroidKeyboard"]-->Type
click Derived0 "/sharpinputsystem/api/SharpInputSystem.Android/AndroidKeyboard"
Derived1["SWFKeyboard"]-->Type
click Derived1 "/sharpinputsystem/api/SharpInputSystem.SWF/SWFKeyboard"
Syntax
public abstract class Keyboard : InputObject, IDisposable
Constructors
| Name | Summary |
|---|---|
| Keyboard |
Fields
| Name | Constant Value | Summary |
|---|---|---|
| shiftState |
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
|
| IsBuffered | bool |
Get buffered mode - true is buffered, false otherwise
Inherited from InputObject
|
| IsDisposed | bool |
Inherited from InputObject
|
| KeyStates | int[] | |
| TextMode | 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
Inherited from InputObject
|
| Dispose |
void |
Inherited from InputObject
|
| Dispose |
void |
Inherited from InputObject
|
| IsKeyDown |
bool |
Checks to see if the key is pressed
|
| IsShiftState |
bool |
Checks the Shift Status for the specified keys
|
| QueryInterface |
I |
Inherited from InputObject
|