Thread: Problem in mouse position

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    >GetCursorPos(&Pt);
    >Pt.x=xpos;
    >Pt.y=ypos;

    You get the cursor position, and then you immediately re-assign it to some other value. I think your assignment is backwards.

  2. #2
    Registered User
    Join Date
    Jun 2006
    Posts
    9
    I fixed the cordinates. Now I just need help to get the thing right, that when I click I want the sphere to stay there and not disapear when I release the button, and when I click again it will add another ball and the first one will not disapear.
    Right now it adds a sphere when I hold down the button, and then the sphere diasapears when I release the button.

    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting the position of the mouse cursor
    By Mavix in forum Game Programming
    Replies: 5
    Last Post: 12-27-2007, 04:02 PM
  2. simple mouse movement program
    By skankles in forum Windows Programming
    Replies: 3
    Last Post: 05-27-2007, 07:54 PM
  3. Problem with Mouse Over Menu!!! HELP!!!
    By SweeLeen in forum C++ Programming
    Replies: 3
    Last Post: 02-09-2006, 02:10 AM
  4. Game Design Topic #2 - Keyboard or Mouse?
    By TechWins in forum Game Programming
    Replies: 4
    Last Post: 10-08-2002, 03:34 PM
  5. Replies: 0
    Last Post: 02-05-2002, 07:44 PM