Class BrushShortcutHandler<TKey>
Inheritance
System.Object
BrushShortcutHandler<TKey>
Syntax
public class BrushShortcutHandler<TKey>
Type Parameters
Methods
AddActions(TKey, Action, Action)
Declaration
public void AddActions(TKey key, Action onPressed = null, Action onReleased = null)
Parameters
Type |
Name |
Description |
TKey |
key |
|
System.Action |
onPressed |
|
System.Action |
onReleased |
|
HandleShortcutChanged(ShortcutArguments, TKey)
Declaration
public void HandleShortcutChanged(ShortcutArguments args, TKey key)
Parameters
Type |
Name |
Description |
ShortcutArguments |
args |
|
TKey |
key |
|
IsShortcutPressed(TKey)
Declaration
public bool IsShortcutPressed(TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
Type |
Description |
System.Boolean |
|
RemoveActions(TKey)
Declaration
public void RemoveActions(TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|