Reverse directions of spacemouse
You could try adjusting mouse settings in User preferences > Input (You can open the user preferences with CtrlAltU, or File > User preferences:




Invert Wheel Zoom Direction inverts the zoom direction when using the mouse wheel in the 3D view.
Invert Zoom Direction inverts the zoom direction when zooming by pressing CtrlMMB.


You could also try the solution posted in this thread on Blender Artists:


  RESOLVED: I received an answer to this question from Tehrasha in the
  Blender.org forum.
  
  Tehrasha pointed out that one of the buttons on the 3D mouse displays
  a settings menu with options to invert the axes.
  
  This works for me. The only thing on my wish list now is to remove the
  need to hold down SHIFT for panning actions, as this breaks the smooth
  flying effect of the 3D mouse (it interrupts any rotation). It's odd
  that zoom (forward / back) works regardless of SHIFT state.