Watson Developer Cloud Unity SDK
1.0.0
The Unity SDK uses the Watson Developer Cloud services, a collection of REST APIs and SDKs that use cognitive computing to solve complex problems.
|
This class handles key presses and will sent events and/or invoke a delegate when a key is pressed. More...
Public Member Functions | |
bool | RegisterKeyEvent (KeyCode key, KeyModifiers modifiers, string eventType) |
Register a key event. More... | |
bool | UnregisterKeyEvent (KeyCode key, KeyModifiers modifiers=KeyModifiers.NONE, string eventType="") |
Unregister a key event. More... | |
Properties | |
bool | Active [get, set] |
Set/Get the active state of this manager. More... | |
static KeyEventManager | Instance [get] |
The current instance of the DebugConsole. More... | |
This class handles key presses and will sent events and/or invoke a delegate when a key is pressed.
|
inline |
Register a key event.
key | The KeyCode of the key. |
modifiers | KeyCode modifiers |
eventType | The event to send. |
|
inline |
Unregister a key event.
key | The KeyCode to unregister. |
modifiers | Additional keys that must be down as well to fire the event. |
eventType | If provided, then the key will be unregistered only the event matches the existing registration. |
|
getset |
Set/Get the active state of this manager.
|
staticget |
The current instance of the DebugConsole.