# yuiMultiContactInputState

A yui multi contact input state record carrying regions, contacts, maximumContacts, dragThreshold, lastSequence, and related state.

Last updated: 2026-09-09

Package: ui | Status: source-declared

Tags: cpu, method, source-example, thing, ui, yeho

Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.

```yh
external thing yuiMultiContactInputState
```

- list of yuiInputRegion regions: Stores regions as list of yuiInputRegion.
- list of yuiContactState contacts: Stores contacts as list of yuiContactState.
- int maximumContacts: Stores maximum contacts as int.
- int dragThreshold: Stores drag threshold as int.
- int lastSequence: Stores last sequence as int.
- text diagnostic: Stores diagnostic as text.
- yuiMultiContactInputState(int dragThreshold): Yui multi contact input state.
- Reject(text reason, int sequence) returns yuiMultiContactRouteResult: Reject.
- AddRegion(yuiInputRegion region): Add region.
- ContactIndex(text pointerId) returns int: Contact index.
- IsActive(text pointerId) returns bool: Is active.
- CaptureNodeFor(text pointerId) returns text: Capture node for.
- PressedNodeFor(text pointerId) returns text: Pressed node for.
- Reconcile(yuiTree tree): Reconcile.
- CapturePointer(yuiTree tree, text nodeId, text pointerId) returns bool: Capture pointer.
- ReleasePointer(text pointerId) returns bool: Release pointer.
- RouteFrame(yuiTree tree, int sequence, list of yuiContactChange changes, text cancelNode, text cancelPhase) returns yuiMultiContactRouteResult: Route frame.
- Fingerprint() returns text: Fingerprint.

## Use yuiMultiContactInputState

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

Verification: type checked

```yh
using ui

// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.
yuiMultiContactInputState sample = yuiMultiContactInputState(1)
Console.Log(Text.From(sample.maximumContacts))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuimulticontactinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiMultiContactInputState/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiMultiContactInputState.Reject

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Reject.
yuiMultiContactInputState instance = yuiMultiContactInputState(1)
text argument_reason = "argument reason"
int argument_sequence = 1
yuiMultiContactRouteResult result = instance.Reject(argument_reason, argument_sequence)
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuimulticontactinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiMultiContactInputState/method-Reject-7 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiMultiContactInputState.AddRegion

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Add region.
yuiMultiContactInputState instance = yuiMultiContactInputState(1)
yuiInputRegion argument_region = yuiInputRegion("node Id", 1, 1, 1, 1, 1, true)
instance.AddRegion(argument_region)
Console.Log("AddRegion completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuimulticontactinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiMultiContactInputState/method-AddRegion-8 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiMultiContactInputState.ContactIndex

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Contact index.
yuiMultiContactInputState instance = yuiMultiContactInputState(1)
text argument_pointerId = "argument pointer Id"
int result = instance.ContactIndex(argument_pointerId)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuimulticontactinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiMultiContactInputState/method-ContactIndex-9 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiMultiContactInputState.IsActive

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Is active.
yuiMultiContactInputState instance = yuiMultiContactInputState(1)
text argument_pointerId = "argument pointer Id"
bool result = instance.IsActive(argument_pointerId)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuimulticontactinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiMultiContactInputState/method-IsActive-10 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiMultiContactInputState.CaptureNodeFor

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Capture node for.
yuiMultiContactInputState instance = yuiMultiContactInputState(1)
text argument_pointerId = "argument pointer Id"
text result = instance.CaptureNodeFor(argument_pointerId)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuimulticontactinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiMultiContactInputState/method-CaptureNodeFor-11 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiMultiContactInputState.PressedNodeFor

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Pressed node for.
yuiMultiContactInputState instance = yuiMultiContactInputState(1)
text argument_pointerId = "argument pointer Id"
text result = instance.PressedNodeFor(argument_pointerId)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuimulticontactinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiMultiContactInputState/method-PressedNodeFor-12 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiMultiContactInputState.Reconcile

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Reconcile.
yuiMultiContactInputState instance = yuiMultiContactInputState(1)
yuiTree argument_tree = yuiTree("id")
instance.Reconcile(argument_tree)
Console.Log("Reconcile completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuimulticontactinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiMultiContactInputState/method-Reconcile-13 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiMultiContactInputState.CapturePointer

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Capture pointer.
yuiMultiContactInputState instance = yuiMultiContactInputState(1)
yuiTree argument_tree = yuiTree("id")
text argument_nodeId = "argument node Id"
text argument_pointerId = "argument pointer Id"
bool result = instance.CapturePointer(argument_tree, argument_nodeId, argument_pointerId)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuimulticontactinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiMultiContactInputState/method-CapturePointer-14 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiMultiContactInputState.ReleasePointer

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Release pointer.
yuiMultiContactInputState instance = yuiMultiContactInputState(1)
text argument_pointerId = "argument pointer Id"
bool result = instance.ReleasePointer(argument_pointerId)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuimulticontactinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiMultiContactInputState/method-ReleasePointer-15 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiMultiContactInputState.RouteFrame

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Route frame.
yuiMultiContactInputState instance = yuiMultiContactInputState(1)
yuiTree argument_tree = yuiTree("id")
int argument_sequence = 1
list of yuiContactChange argument_changes = []
text argument_cancelNode = "argument cancel Node"
text argument_cancelPhase = "argument cancel Phase"
yuiMultiContactRouteResult result = instance.RouteFrame(argument_tree, argument_sequence, argument_changes, argument_cancelNode, argument_cancelPhase)
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuimulticontactinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiMultiContactInputState/method-RouteFrame-16 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiMultiContactInputState.Fingerprint

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Fingerprint.
yuiMultiContactInputState instance = yuiMultiContactInputState(1)
text result = instance.Fingerprint()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuimulticontactinputstate"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiMultiContactInputState/method-Fingerprint-17 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

Source: yeho/packages/ui/interaction-multicontact.yh

AI training permission: https://demonhunterlabs.com/ai-use
