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.
IBM.Watson.DeveloperCloud.Utilities.KeyEventManager Class Reference

This class handles key presses and will sent events and/or invoke a delegate when a key is pressed. More...

Inheritance diagram for IBM.Watson.DeveloperCloud.Utilities.KeyEventManager:

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...
 

Detailed Description

This class handles key presses and will sent events and/or invoke a delegate when a key is pressed.

Member Function Documentation

bool IBM.Watson.DeveloperCloud.Utilities.KeyEventManager.RegisterKeyEvent ( KeyCode  key,
KeyModifiers  modifiers,
string  eventType 
)
inline

Register a key event.

Parameters
keyThe KeyCode of the key.
modifiersKeyCode modifiers
eventTypeThe event to send.
Returns
True is returned on success.
bool IBM.Watson.DeveloperCloud.Utilities.KeyEventManager.UnregisterKeyEvent ( KeyCode  key,
KeyModifiers  modifiers = KeyModifiers.NONE,
string  eventType = "" 
)
inline

Unregister a key event.

Parameters
keyThe KeyCode to unregister.
modifiersAdditional keys that must be down as well to fire the event.
eventTypeIf provided, then the key will be unregistered only the event matches the existing registration.
Returns
True is returned on success.

Property Documentation

bool IBM.Watson.DeveloperCloud.Utilities.KeyEventManager.Active
getset

Set/Get the active state of this manager.

KeyEventManager IBM.Watson.DeveloperCloud.Utilities.KeyEventManager.Instance
staticget

The current instance of the DebugConsole.


The documentation for this class was generated from the following file: