[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

How exactly does the mouse interact with the monitor? So far

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 21
Thread images: 2

File: suna5.gif (36KB, 400x299px) Image search: [Google]
suna5.gif
36KB, 400x299px
How exactly does the mouse interact with the monitor?

So far I'm assuming that the mouse sends (binary) data to the device controller.
Then the OS does interrupts and polling
Then that data somehow translates to binary in the graphics controller for moving the white arrow to a certain place

Help me out here
>>
can any of you at least link me to documentation/books for this
>>
just what the fuck is wrong with you?
>>
>>59186135
Why do you have to be fucking hostile?
I am trying to figure this shit out on my own so cut me some slack
>>
>>59186215
Your first mistake was coming here for actual knowledge
>>
>>59186222
yeah, I can see that now
>>
>>59185950
>What is google?
>>
>>59186292
>google is the answer to everything
I wonder what the IQ of this board is
>>
>>59186380
This will explain how a mouse works:
https://www.youtube.com/watch?v=bZe5J8SVCYQ
>>
>>59186380
>How can I search for an answer without asking aspies on a Taiwanese animu board?
>>
>>59186215
>I am trying to figure this shit out on my own so cut me some slack
>on my own
Why do you ask interned forum about crossdressing or anyone at all ?
Figure it out on your own :p
>>
>>59185950
>Then that data somehow translates to binary in the graphics controller

Not really, you have a pointer to a framebuffer in memory that you get when starting graphics mode in 16bit mode, you then read whatever coordinates the mouse give you and draw whatever you want in the screen using them by storing the pixels in said pointer.
>>
>>59185950
>How exactly does the mouse interact with the monitor?
it doesn't

1. mouse detect movement
2. mount sends these movements to the computer
3. mouse driver running on computer picks up movement information and tells the OS about it
4. OS decides what to do with the information, what to draw, when to draw it, what it looks like, might apply acceleration, etc
5. once it's decided that it will be drawn, details about where it should be and what it looks like is communicated by the OS, through the graphics driver, to the graphics card, in the case of a hardware cursor. if it's a software cursor, it is instead drawn like a regular graphical element
>>
>>59186215
lol its like when you stack overflow a simple question, and the most voted response is "just google it dumbass"
>>
File: 1470414789912.jpg (14KB, 480x343px) Image search: [Google]
1470414789912.jpg
14KB, 480x343px
>>59186412
>>
Lots of ways of doing this. I remember when graphics drivers often came with a hardware mouse cursor. You would upload a mask and an image (usually monochrome or 256-color) into the graphics adapter memory and it would overlay it on the display. This could be abused to draw sprites to the display, too.
>>
>>59188183
>google something
>first result is "nvm found it on google"
>>
>>59188183
>>59188631

In OP's case, lowlevel graphics are pretty hard to find info about.
Like try to search how to get a linear pointer to the monitor's memory, its all confusing shit explaining shit that you didnt ask when the actual code its like a few lines of assembly
>>
>>59188121
this

for windows, there is the whole thing of windowing on top of it

parent windows getting messages before child windows etc (iow parent windows make decisions on drawing first and pass it on to children)
>>
>>59188821
yes, but if you are a programmer yourself, you should know that when you are not knowledgeable about something, a clear indication is you don't even know the right questions to ask. Someone who has gone through the learning process alone in that specific topic would know what to say in response.
>>
>>59188907

Well thats why hes asking, there are very little resources on the subject and not even a proper book to even get a proper start.
I can understand, it took me 2 weeks to find out how to write the simplest graphics mode driver and most of the time was spent just searching how to get past the beginner's hello world int 10h that outputs to the screen's text buffer but only in real mode.
Thread posts: 21
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.