[]
Represents an action map, which provides mappings from objects to actions.
public class ActionMap
Public Class ActionMap
An action map is usually used with an input map (see InputMap class) to locate a particular action when a key is pressed. An action map can have a parent that is searched for keys not defined in the input map.
Name | Description |
---|---|
ActionMap() | Initializes an action map with no parent and no mappings. |
Name | Description |
---|---|
Parent | Gets or sets the parent action map (ActionMap object) of this action map. |
Size | Returns the number of mappings defined in this action map. |
Name | Description |
---|---|
AllKeys() | Returns the keys that are defined in this action map and its parent. |
Clear() | Removes all the mappings from this action map. |
Get(object) | Returns the binding to an action for the specified key. |
Keys() | Returns the keys defined in this action map. |
Put(object, Action) | Creates a binding between a key and an action. |
Remove(object) | Removes the binding to an action for the specified key. |