Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have two mouse, with global hook, I can get the mouse event of the two mouses.
But I cannot find out the source of the event.
It is not included in the MouseHookStruct.
Does any have a clue for solving such problem?
Thank a lot.
Posted
Comments
unangel 27-Aug-11 12:47pm    
I mean I want to know which one of the mouse generated the event.
BillWoodruff 28-Aug-11 1:28am    
I just have to vote this question a #5 based on the idea of "stereo mice," which seems to me ... 'wondrous' ... if not ambidextrous :)

1 solution

I think you have to use the MultiPoint Mouse SDK[^] to do that and only the application programmed to handle multiple mouses would be able to know which mouse was used.

Otherwise, I don't think the information is available in user mode code.
 
Share this answer
 
Comments
unangel 27-Aug-11 13:37pm    
Thank you, Philippe.
Is it possible that I get it from the "System Hardware Input Queue"?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900