static variables for mouse events

r? pcwalton