input.mouse · thing ·

mouseDelta

A mouse delta record carrying x, y.

cpuinputinput.mousemousesource-examplethingyeho

Read mouse position, buttons, and relative input for native interactions.

external thing mouseDelta

Status: source-declared

Fields and methods (3)
int x
Stores x as int.
int y
Stores y as int.
mouseDelta(int x, int y)
Mouse delta.

Use mouseDelta

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using input.mouse

// Read mouse position, buttons, and relative input for native interactions.
mouseDelta sample = mouseDelta(1, 1)
Console.Log(Text.From(sample.x))
project.mech
manifestVersion = "2"
package = "api.example.input_mouse__mousedelta"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "input.mouse"
version = "0.1.0"
path = "../../../yeho/packages/input/mouse"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/input/mouse/mouse.yh:15