Fixed array out of range in OnMouseMoved

parameter iMouseButton was not properly checked before it was
used for indexing g_fLastClickTime.