MouseZSpeed stuff and window losing focus

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm sure that many people here have noticed this problem.
Whenever the Blitz Runtime Window loses focus, MouseZ() resets to 0, causing MouseZSpeed() to mess up. In programs where rolling the mouse wheel causes the camera to zoom, for example, this is a problem because it means that it will reset the camera's zoom.
Does anyone know how to fix this problem?