Mousewheel for zoom

BlitzMax Forums/BlitzMax Programming/Mousewheel for zoom

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'd just build a function for this, what is what you suggested anyways.

Function MouseZSpeed:Int() 
	Global _mz:Int
	Local mz:Int = MouseZ()
	If mz = _mz Then
		Return 0
	EndIf
	If mz > _mz Then
		_mz = mz
		Return 1
	EndIf
	_mz = mz
	Return -1

End Function