receiving mouse position and button status