Jichao
Jichao

Reputation: 41815

Is it possible to determine whether a WM_MOUSEMOVE from mice or touchpad?

I need to detect the source of message WM_MOUSEMOVE, but I could not find any resource on the internet.

Is this possible?

Upvotes: 1

Views: 305

Answers (2)

Jichao
Jichao

Reputation: 41815

Yes, actually Raw Input could detect where the mouse_move message comes from, otherwise other input device such as joystick etc will not work.

Upvotes: 0

mity
mity

Reputation: 2349

I strongly believe it is not possible. WM_MOUSEMOVE describes move of the mouse cursor on the screen, no matter what device caused the action. Actually it even might be software-emulated move of the mouse cursor, i.e. not caused by any HW device at all.

Upvotes: 1

Related Questions