Mouse position in DirectX

This is a discussion on Mouse position in DirectX within the Game Programming forums, part of the General Programming Boards category; Hi I am working with DirectX and have a question about how to get feedback about where the mouse is. ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    591

    Mouse position in DirectX

    Hi

    I am working with DirectX and have a question about how to get feedback about where the mouse is. I am working with C# but I would guess what I am looking for is pretty universal. My problem is this. If I create a line and render it to my device and rotate and scale, If I then move the mouse to the endpoint I would like to get the correct cordinate for the endpoint of that line. I probably could do alot of math but is there anything within DirectX I can use to get a translatet mouse position that reflect the Device. MM It doesn't make sense to me either..Ok lets make another example. Lets say I design a game that have something happening when the user is clicking on X200,Y200,Z50..Lets then say that the user can rotate the enviorment. How can I find out what coordinate he clickt after the transformation. Is there a function to get the projected position of my 3D Model

    ~Barjor

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    591
    Think I got it but is there an easier way to do it

    http://msdn.microsoft.com/library/de...s/cpp/pick.asp
    Last edited by Barjor; 03-09-2003 at 09:30 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Position mouse in external application
    By keira in forum C# Programming
    Replies: 1
    Last Post: 09-15-2008, 08:05 PM
  2. Getting the position of the mouse cursor
    By Mavix in forum Game Programming
    Replies: 5
    Last Post: 12-27-2007, 04:02 PM
  3. Problem in mouse position
    By Arangol in forum Game Programming
    Replies: 6
    Last Post: 08-08-2006, 08:07 AM
  4. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  5. mouse in DirectX
    By SuperNewbie in forum Windows Programming
    Replies: 1
    Last Post: 03-31-2002, 12:37 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21