[Fix] MouseStat use button.x/button.y for mouse button event.

mouse event use the different member of the event union struct, motion vs button, we need judge then use.