C# Class UIKeyBinding, TheUnseen

Inheritance: MonoBehaviour
Mostrar archivo Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
action Action
keyCode KeyCode,
modifier Modifier,

Public Methods

Method Description
OnSubmit ( ) : void

Ignore the KeyUp message if the input field "ate" it.

Start ( ) : void

If we're bound to an input field, subscribe to its Submit notification.

Update ( ) : void

Process the key binding.

Private Methods

Method Description
IsModifierActive ( ) : bool

Convenience function that checks whether the required modifier key is active.

Method Details

OnSubmit() public method

Ignore the KeyUp message if the input field "ate" it.
public OnSubmit ( ) : void
return void

Start() public method

If we're bound to an input field, subscribe to its Submit notification.
public Start ( ) : void
return void

Update() public method

Process the key binding.
public Update ( ) : void
return void

Property Details

action public_oe property

Action to take with the specified key.
public Action action
return Action

keyCode public_oe property

Key that will trigger the binding.
public KeyCode, keyCode
return KeyCode,

modifier public_oe property

Modifier key that must be active in order for the binding to trigger.
public Modifier, modifier
return Modifier,