/// <summary> /// 滚轮转动测试 /// </summary> /// <param name="tresult"></param> /// <param name="enTestItem"></param> /// <param name="wheelCount"></param> public static void WheelStatus(DataStruct.MouseTestResultData tresult, Dictionary <data.TestItem, bool> enTestItem, ref DataStruct.WHEEL_COUNT wheelCount) { if (tresult == null || enTestItem == null) { return; } if (tresult.curWheelDir == DataStruct.WHEEL_DIR.FORWARD && enTestItem[data.TestItem.EN_WHEEL_FORWARD]) { wheelCount.SetForwardOnce(); } else if (tresult.curWheelDir == DataStruct.WHEEL_DIR.BACKWARD && enTestItem[data.TestItem.EN_WHEEL_BACKWARD]) { wheelCount.SetBackwardOnce(); } }
/// <summary> /// 滚轮3D滚动显示 /// </summary> /// <param name="tresult"></param> /// <param name="enTestItem"></param> /// <param name="wheelCount"></param> /// <param name="wheel3D"></param> public static void WheelStatus3DStep(DataStruct.MouseTestResultData tresult, Dictionary <data.TestItem, bool> enTestItem, DataStruct.WHEEL_COUNT wheelCount, DX3D wheel3D) { if (tresult == null || enTestItem == null) { return; } if (tresult.curWheelDir == DataStruct.WHEEL_DIR.FORWARD && enTestItem[data.TestItem.EN_WHEEL_FORWARD]) { wheel3D.SetForeward(wheelCount.ForwardCount += 100 / 24); } else if (tresult.curWheelDir == DataStruct.WHEEL_DIR.BACKWARD && enTestItem[data.TestItem.EN_WHEEL_BACKWARD]) { wheel3D.SetBackward(wheelCount.BackwardCount += 100 / 24); } }