From: bdarnell AT vnet DOT net (Ben Darnell) Newsgroups: comp.os.msdos.djgpp Subject: Re: Mouse Drag Problem: Allegro Date: Sun, 01 Dec 1996 22:04:05 GMT Organization: Vnet Internet Access, Inc. Lines: 27 Message-ID: <57svco$geh@ralph.vnet.net> References: <01bbdf53$3c366ce0$55d10bce AT miller> NNTP-Posting-Host: vts-char5-s10.vnet.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp "Neil Miller" was overheard mumbling incoherently about Mouse Drag Problem: Allegro: >Well, thanks to the gracious help of the posters of this ng, I have a real >problem ;-). >I am using Allegro, trying to make a circle at the point the cursor is when >the left button is pressed. I used show_mouse(NULL); before I drew and get >no droppings, but I have a diff. problem. If I drag the mouse, even >slightly, I get a long drag line from the dot. >REAL QUESTION: Is there a way to lock the cursor or prevent the user from >being able to move the dot? >Do you get the question? I want the user to just be able to draw one circle >at a time, then I clear the screen and the process restarts. If you don't >get the question, reply & I will post the code. I can't tell exactly what you are doing, but it sounds like you are accessing mouse_x and mouse_y several times. Just assign these to different variables (i.e. "int mx=mouse_x, my=mouse_y") and use those instead. __ __ /> /_ /| / /\ /| /> /| / /_ / / /> /_ / |/ /_/ /-| / \ / |/ /_ /_ /_ http://users.vnet.net/bdarnell bdarnell AT vnet DOT net