Fixed InputDeviceMouse::IsValidButtonId and some warnings.