flat assembler
Message board for the users of flat assembler.

Index > OS Construction > cursor/mouse

Author
Thread Post new topic Reply to topic
Redragon



Joined: 27 Nov 2004
Posts: 101
Location: U.S.
Redragon
i was wondering how i would go about displaying a cursor, i know that ive got to setup up the driver and all that, but i dont know how..ive already got protected mode, real mode and all that already setup.. any examples, code, or great tutorials would be greatly appreciated (preferibly in fasm).. thanks!
Post 06 Mar 2005, 03:12
View user's profile Send private message Reply with quote
PopeInnocent



Joined: 01 Jan 2004
Posts: 18
Location: USA
PopeInnocent
The best book I know of for mouse stuff is "Building a Better Mouse Trap" by Jeffrey S. Donovan. It's about 10 years old and deals with DOS and Windows, but it goes over a lot of the mechanics of efficient cursor sprite rendering, and it should be enough to get you started.
Post 06 Mar 2005, 04:47
View user's profile Send private message Reply with quote
joachim_neu



Joined: 22 Dec 2003
Posts: 139
joachim_neu
oh... a complete book about implementing the mouseinterface? how many pages is it big?
Post 06 Mar 2005, 08:41
View user's profile Send private message Visit poster's website Reply with quote
DragonFire



Joined: 07 Feb 2005
Posts: 13
DragonFire
Wow... people write books for almost everything don't they? lol
Post 07 Mar 2005, 02:01
View user's profile Send private message Reply with quote
rea



Joined: 14 Nov 2004
Posts: 92
rea
I have writed a little answer (but you know it is gone), the book wa about 522pp If I remember correctly.


Also I sugest to try to doit yourself, time a go a teacher say to us make a programm for DOS (a icon editor), and that require a graphic interface, the others guys select to read a book called some like "powerfull graphics with Turbo C++", I decide to make it from scratch, I find the line algorith and a circle one, how to set up a simple resolution 320x200 If I'm not wrong...

The point was that I require to handle the mouse, and I do a basic way, als i Have used something that you will find normally in some examples handling the mouse, I have used a cycle or sleep for handle that the interruption is launched much times in a second by the way... a bad way Wink. Now after I was trying to do a calculator and I take another time the mouse, but now instead of the loop or sleep I use time managament that is handle best the mouse events, I have handled to get mouse down, mouseup, mousemov, start drag, end drag and others fun events Wink.


Also I recommend to read the sources of some OS out there that use the mouse Wink.
Post 07 Mar 2005, 13:44
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
redragon: look at interrupt 33h description (maybe it is 31h? not sure) first few services is all you need.

btw. if you was asking about building a mouse DRIVER then sorry, i couldn't make it out from you post.
Post 07 Mar 2005, 14:16
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.