{"id":"input.mouse--MouseX","name":"MouseX","owner":"yeho","package":"input.mouse","kind":"function","signature":"external MouseX() -> int","description":"Mouse x.","context":"Read mouse position, buttons, and relative input for native interactions.","parameters":[],"returns":"int","members":[],"tags":["cpu","function","input","input.mouse","mouse","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/input/mouse/mouse.yh","line":74,"sha256":"a5cc47e935de36ef75b762c9e99443a266ac5906884f1d657528aeb744667047"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use MouseX","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using input.mouse\n\n// Read mouse position, buttons, and relative input for native interactions.\nint result = MouseX()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.input_mouse__mousex\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"input.mouse\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/input/mouse\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"19473be1297fdf58fa676a1ab7b61e50b73e62a3310c51442dee40d8b33d93b2","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=input.mouse--MouseX","json":"https://demonhunterlabs.com/reference/items/input.mouse--MouseX.json","markdown":"https://demonhunterlabs.com/reference/text/input.mouse--MouseX.md"}
