Search code examples
c#xnamouseeventmouseclick-eventregisterhotkey

Getting MouseButton event when it happens, not when it is released


Simply put, I want to be able to get the event of a mouseclick (specifically MiddleButton) when a user clicks the button - not after it's been released.

I think I've done it once before, but I've forgotten.

This is to be able to navigate a 3D view when the user clicks the button, in an XNA project.

Are there any similiar ways to register HotKeys but for the Mouse?


Solution

  • Isn't that just the MouseDown event?