MouseZSpeed stuff and window losing focus

Blitz3D Forums/Blitz3D Programming/MouseZSpeed stuff and window losing focus

I have this problem. Lose focus and my game camera zooms right in to the max.

Has anyone solved it? All I can think of at the moment is to detect big sudden jumps in the mouseZ and recalibrate.

Is there a way to detect loss of focus? That would be ideal.