programming mouse

Discussion in 'Programming' started by ssimon171078, Dec 28, 2009.

  1. #1
    How to receive mouse position using c with api?
     
    ssimon171078, Dec 28, 2009 IP
  2. dollarfish

    dollarfish Member

    Messages:
    89
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    26
    #2
    You can check GetCursorPos Win 32 API

    BOOL GetCursorPos( LPPOINT lpPoint )
     
    dollarfish, Dec 29, 2009 IP
  3. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    In addition to GetCursorPos, you may also consider using GetMouseMovePointsEx(). You can add the handle WM_MOUSEMOVE if it is Win32 application.
     
    NeoCambell, Dec 30, 2009 IP