Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hey guys,

so as i has in my previous question, i am currently building my own operating system. it is going quite well. but at the moment, it is only command line based and the only part that isn't command line based are the programs which have their own little thing. i've gone through my language and i don't think that there is much more that i could add currently, so while i'm working on a few different things and fixing up some bugs, i would like to start thinking about a gui.

so the question is, how do i create and use a mouse for my os in asm. i know how to print blocks and do the rest of the gui, i just need to know how to get the mouse working with a little cursor.

thanks a heap :)
Posted
Comments
Richard MacCutchan 29-Aug-13 5:33am    
This question cannot be answered in a forum such as this. you need to design a device driver for the mouse, and write a handler in the OS to deal with the mouse interrupts. Take a look a some of the sites on the internet that deal with device drivers.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900