浏览代码

降低交互命令的玉坠

liang 1 年之前
父节点
当前提交
a28983609a
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      footRing_sdk_1.0/include/pub.h
  2. 3 3
      footRing_sdk_1.0/src/Interaction.cpp

+ 1 - 1
footRing_sdk_1.0/include/pub.h

@@ -44,7 +44,7 @@ using namespace std;
 
 #define PRESS_MIN 41000
 
-#define GAME_VERSION "0.6.16"
+#define GAME_VERSION "0.6.17"
 
 enum CMD_MOTION
 {

+ 3 - 3
footRing_sdk_1.0/src/Interaction.cpp

@@ -122,12 +122,12 @@ int Interaction::enter_key_listen( float* acc, float* acc_x_buff,int &station_co
 	pitch_buff[9] = pitch;
 
 	//先判断俯仰角是否正常着地,这样才能判断确认键
-	if (pitch < 0.6f)
+	if (pitch < 0.4f)
 	{
 		angle_has_reset = 1;
 	}
 
-	if (acc_is_valid(acc_x_buff, 10) && *max_element(pitch_buff, pitch_buff + 10) - *min_element(pitch_buff, pitch_buff + 10) < 0.1)
+	if (acc_is_valid(acc_x_buff, 10) && *max_element(pitch_buff, pitch_buff + 10) - *min_element(pitch_buff, pitch_buff + 10) < 0.1f)
 	{
 		station_count++;
 	}
@@ -137,7 +137,7 @@ int Interaction::enter_key_listen( float* acc, float* acc_x_buff,int &station_co
 	}
 
 	//x轴速度剧烈抖动,而且俯仰角大于45度,则证明是踮脚
-	if (station_count > 10 && pitch > 0.6f  && angle_has_reset == 1)
+	if (station_count > 10 && pitch > 0.4f  && angle_has_reset == 1)
 	{
 		angle_has_reset = 0;