I tried to get the mouse position without having to perform some kind of mouse input. But I can't figure out how this might be doable.
One idea I had was looking in the OpenOS files, since some events like "component_available" are actually pushed by the code using computer.pushSignal, but I wasn't able to find something similar for the screen events like "touch" or "drag". Does anyone know if those screen events are pushed in an similar way by Lua code or knows a different approach to get the mouse position?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Hey guys,
I tried to get the mouse position without having to perform some kind of mouse input. But I can't figure out how this might be doable.
One idea I had was looking in the OpenOS files, since some events like "component_available" are actually pushed by the code using computer.pushSignal, but I wasn't able to find something similar for the screen events like "touch" or "drag". Does anyone know if those screen events are pushed in an similar way by Lua code or knows a different approach to get the mouse position?
Thank you in advance
Link to post
Share on other sites