How to disable camera moves (to use mouse clicks) in editor?

I would like to create an editor plugin which create objects when clicking and dragging. The problem is that the mouse events in the editor are dedicated to the camera moves.

How can I

  • prevent the camera to move when clicking and dragging (when the editor is in special mode?)


  • totally change the camera controls (to make it work like in another software like 3Ds max or Sketchup)?