How to make a button and a mouse in cosmos? #1631
Replies: 5 comments 3 replies
-
Do you already have the start of a GUI? Cosmos gives you access to the mouse position, to draw that on screen is up to you. See this for some more info https://github.com/CosmosOS/Cosmos/wiki/Mouse For buttons, its similar, Cosmos does not have out of the box support for such high level GUI features. Your best bet is to either use someone elses GUI framework or start developing your own. Implementing a button can be as easy as drawing a square and checking if a mouse button is pressed. |
Beta Was this translation helpful? Give feedback.
-
but the build mouse link is not working! |
Beta Was this translation helpful? Give feedback.
-
how i create button like ms-dos?? |
Beta Was this translation helpful? Give feedback.
-
And, so how i create buttons??
… Il giorno 20 ott 2021, alle ore 15:12, FreeBSoD ***@***.***>
how i create button like ms-dos??
I am also making a DOS like os, I also want to know.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
How?
Inviato da iPhone
… Il giorno 20 ott 2021, alle ore 21:47, Quajak ***@***.***> ha scritto:
The simplest button would be to draw a rectangle and then check if the mouse if over the button when the user clicks.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
How to make a button and a mouse in cosmos?
Beta Was this translation helpful? Give feedback.
All reactions