Divooka Reference

Input Map

13 nodes

On this page 13

Make Input Map

Function

This node carries no documentation.

Signature
InputMap() -> Input Map
InputMap InputMap()

Returns

Input MapInput Map
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Input Map
Package
Glaze Realtime

Bind

Function

Make a key mean an intent.

Signature
Bind(Input Map: Input Map, intent: Text, key: Keyboard Key)
void Bind(InputMap Input Map, string intent, KeyboardKey key)

Parameters

nametypedefaultdescription
Input MapInput Map—
intentText—
keyKeyboard 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

Function

One of the keys that mean this intent, in the order they were bound.

Signature
BindingAt -> Keyboard Key
    Input Map: Input Map
    intent: Text
    index: Integer
KeyboardKey BindingAt(
    InputMap Input Map,
    string intent,
    int index)

Parameters

nametypedefaultdescription
Input MapInput Map—
intentText—
indexInteger—

Returns

resultKeyboard 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

Function

How many keys mean this intent.

Signature
BindingCount(Input Map: Input Map, intent: Text) -> Integer
int BindingCount(InputMap Input Map, string intent)

Parameters

nametypedefaultdescription
Input MapInput Map—
intentText—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Input Map
Package
Glaze Realtime

Intent Count

Function

How many intents have ever been named.

Signature
IntentCount(Input Map: Input Map) -> Integer
int IntentCount(InputMap Input Map)

Parameters

nametypedefaultdescription
Input MapInput Map—

Returns

resultInteger

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

Function

An intent by position, in the order they were first named.

Signature
IntentAt(Input Map: Input Map, index: Integer) -> Text
string IntentAt(InputMap Input Map, int index)

Parameters

nametypedefaultdescription
Input MapInput Map—
indexInteger—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Input Map
Package
Glaze Realtime

Intent For

Function

What this key means, or empty if it means nothing.

Signature
IntentFor(Input Map: Input Map, key: Keyboard Key) -> Text
string IntentFor(InputMap Input Map, KeyboardKey key)

Parameters

nametypedefaultdescription
Input MapInput Map—
keyKeyboard Key—

Returns

resultText

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

Function

Whether this intent has any key at all.

Signature
IsBound(Input Map: Input Map, intent: Text) -> Truth
bool IsBound(InputMap Input Map, string intent)

Parameters

nametypedefaultdescription
Input MapInput Map—
intentText—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Input Map
Package
Glaze Realtime

Is Down

Function

Whether any key bound to this intent is being held.

Signature
IsDown -> Truth
    Input Map: Input Map
    intent: Text
    application: Realtime Application
bool IsDown(
    InputMap Input Map,
    string intent,
    RealtimeApplication application)

Parameters

nametypedefaultdescription
Input MapInput Map—
intentText—
applicationRealtime Application—The application to ask, which is the thing holding the service provider that knows about the keyboard.

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Input Map
Package
Glaze Realtime

Means

Function

Whether this key currently means this intent.

Signature
Means -> Truth
    Input Map: Input Map
    key: Keyboard Key
    intent: Text
bool Means(InputMap Input Map, KeyboardKey key, string intent)

Parameters

nametypedefaultdescription
Input MapInput Map—
keyKeyboard Key—
intentText—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Input Map
Package
Glaze Realtime

Rebind

Function

Make this the ONLY key for an intent.

Signature
Rebind(Input Map: Input Map, intent: Text, key: Keyboard Key)
void Rebind(InputMap Input Map, string intent, KeyboardKey key)

Parameters

nametypedefaultdescription
Input MapInput Map—
intentText—
keyKeyboard 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

Function

Take one key away from whatever it meant.

Signature
Release(Input Map: Input Map, key: Keyboard Key) -> Truth
bool Release(InputMap Input Map, KeyboardKey key)

Parameters

nametypedefaultdescription
Input MapInput Map—
keyKeyboard Key—

Returns

RemovedTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Input Map
Package
Glaze Realtime

Unbind

Function

Take every key away from an intent, leaving it bound to nothing.

Signature
Unbind(Input Map: Input Map, intent: Text)
void Unbind(InputMap Input Map, string intent)

Parameters

nametypedefaultdescription
Input MapInput Map—
intentText—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Input Map
Package
Glaze Realtime