Cato's right, ToggleWalk() is private and gives you business for trying to use it. So are the Mouse API functions.
Wykkyd's Framework has an Auto-Sheathe feature which might be close enough to what you're describing to rework for your own purposes, and you could try tracking the EVENT_GLOBAL_MOUSE_DOWN and EVENT_GLOBAL_MOUSE_UP events. EVENT_LAYER_POP and EVENT_LAYER_PUSH might be useful for tracking when the mouse cursor is active (that'd be layerIndex 6, "MouseUIMode")
Though, either Zgoo isn't registered for GLOBAL_MOUSE events or they don't trigger like I imagined.
|