Input Map
13 nodes
On this page 13
Make Input Map
FunctionThis node carries no documentation.
InputMap() -> Input Map
InputMap InputMap()
Returns
| Input Map | Input Map |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Input Map
- Package
- Glaze Realtime
Bind
FunctionMake a key mean an intent.
Bind(Input Map: Input Map, intent: Text, key: Keyboard Key)
void Bind(InputMap Input Map, string intent, KeyboardKey key)
Parameters
| name | type | default | description |
|---|---|---|---|
| Input Map | Input Map | — | |
| intent | Text | — | |
| key | Keyboard Key | — |
Remarks
Takes the key away from whatever it meant before. Binding the same key to the same intent twice is a
no-op rather than a duplicate.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Input Map
- Package
- Glaze Realtime
Binding At
FunctionOne of the keys that mean this intent, in the order they were bound.
BindingAt -> Keyboard Key
Input Map: Input Map
intent: Text
index: IntegerKeyboardKey BindingAt(
InputMap Input Map,
string intent,
int index)Parameters
| name | type | default | description |
|---|---|---|---|
| Input Map | Input Map | — | |
| intent | Text | — | |
| index | Integer | — |
Returns
| result | Keyboard Key |
Remarks
Answers Unrecognized out of range - the framework's own word for "not a key I
name" - rather than throwing, so a rebinding screen can walk past the end without counting first.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Input Map
- Package
- Glaze Realtime
Binding Count
FunctionHow many keys mean this intent.
BindingCount(Input Map: Input Map, intent: Text) -> Integer
int BindingCount(InputMap Input Map, string intent)
Parameters
| name | type | default | description |
|---|---|---|---|
| Input Map | Input Map | — | |
| intent | Text | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Input Map
- Package
- Glaze Realtime
Intent Count
FunctionHow many intents have ever been named.
IntentCount(Input Map: Input Map) -> Integer
int IntentCount(InputMap Input Map)
Parameters
| name | type | default | description |
|---|---|---|---|
| Input Map | Input Map | — |
Returns
| result | Integer |
Remarks
Includes an intent whose keys were all taken away, because a rebinding screen still has a row
for an action bound to nothing - that is the row the player uses to bind it.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Input Map
- Package
- Glaze Realtime
Intent At
FunctionAn intent by position, in the order they were first named.
IntentAt(Input Map: Input Map, index: Integer) -> Text
string IntentAt(InputMap Input Map, int index)
Parameters
| name | type | default | description |
|---|---|---|---|
| Input Map | Input Map | — | |
| index | Integer | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Input Map
- Package
- Glaze Realtime
Intent For
FunctionWhat this key means, or empty if it means nothing.
IntentFor(Input Map: Input Map, key: Keyboard Key) -> Text
string IntentFor(InputMap Input Map, KeyboardKey key)
Parameters
| name | type | default | description |
|---|---|---|---|
| Input Map | Input Map | — | |
| key | Keyboard Key | — |
Returns
| result | Text |
Remarks
Empty rather than null, so that a graph comparing the answer to a name works without a null check and
a C# caller can use it in a switch. An unbound key is the normal case, not an error - a keyboard
has a hundred keys and a game names four.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Input Map
- Package
- Glaze Realtime
Is Bound
FunctionWhether this intent has any key at all.
IsBound(Input Map: Input Map, intent: Text) -> Truth
bool IsBound(InputMap Input Map, string intent)
Parameters
| name | type | default | description |
|---|---|---|---|
| Input Map | Input Map | — | |
| intent | Text | — |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Input Map
- Package
- Glaze Realtime
Is Down
FunctionWhether any key bound to this intent is being held.
IsDown -> Truth
Input Map: Input Map
intent: Text
application: Realtime Applicationbool IsDown(
InputMap Input Map,
string intent,
RealtimeApplication application)Parameters
| name | type | default | description |
|---|---|---|---|
| Input Map | Input Map | — | |
| intent | Text | — | |
| application | Realtime Application | — | The application to ask, which is the thing holding the service provider that knows about the keyboard. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Input Map
- Package
- Glaze Realtime
Means
FunctionWhether this key currently means this intent.
Means -> Truth
Input Map: Input Map
key: Keyboard Key
intent: Textbool Means(InputMap Input Map, KeyboardKey key, string intent)
Parameters
| name | type | default | description |
|---|---|---|---|
| Input Map | Input Map | — | |
| key | Keyboard Key | — | |
| intent | Text | — |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Input Map
- Package
- Glaze Realtime
Rebind
FunctionMake this the ONLY key for an intent.
Rebind(Input Map: Input Map, intent: Text, key: Keyboard Key)
void Rebind(InputMap Input Map, string intent, KeyboardKey key)
Parameters
| name | type | default | description |
|---|---|---|---|
| Input Map | Input Map | — | |
| intent | Text | — | |
| key | Keyboard Key | — |
Remarks
What a rebinding screen commits: the player chose a key for an action, and the action's old
keys stop working.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Input Map
- Package
- Glaze Realtime
Release
FunctionTake one key away from whatever it meant.
Release(Input Map: Input Map, key: Keyboard Key) -> Truth
bool Release(InputMap Input Map, KeyboardKey key)
Parameters
| name | type | default | description |
|---|---|---|---|
| Input Map | Input Map | — | |
| key | Keyboard Key | — |
Returns
| Removed | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Input Map
- Package
- Glaze Realtime
Unbind
FunctionTake every key away from an intent, leaving it bound to nothing.
Unbind(Input Map: Input Map, intent: Text)
void Unbind(InputMap Input Map, string intent)
Parameters
| name | type | default | description |
|---|---|---|---|
| Input Map | Input Map | — | |
| intent | Text | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Input Map
- Package
- Glaze Realtime