summaryrefslogtreecommitdiffhomepage
path: root/proto-mouse
diff options
context:
space:
mode:
Diffstat (limited to 'proto-mouse')
-rw-r--r--proto-mouse/ftnoir_protocol_mouse.cpp4
-rw-r--r--proto-mouse/lang/zh_CN.ts24
2 files changed, 14 insertions, 14 deletions
diff --git a/proto-mouse/ftnoir_protocol_mouse.cpp b/proto-mouse/ftnoir_protocol_mouse.cpp
index aed49f2b..e5b2192b 100644
--- a/proto-mouse/ftnoir_protocol_mouse.cpp
+++ b/proto-mouse/ftnoir_protocol_mouse.cpp
@@ -31,12 +31,12 @@ void mouse::pose(const double* headpose, const double*)
int mouse_x = 0, mouse_y = 0;
- if (axis_x == clamp(axis_x, Axis_MIN, Axis_MAX))
+ if (axis_x == std::clamp(axis_x, (int)Axis_MIN, (int)Axis_MAX))
mouse_x = get_value(headpose[axis_x] * invert[axis_x],
*s.sensitivity_x,
axis_x >= 3);
- if (axis_y == clamp(axis_y, Axis_MIN, Axis_MAX))
+ if (axis_y == std::clamp(axis_y, (int)Axis_MIN, (int)Axis_MAX))
mouse_y = get_value(headpose[axis_y] * invert[axis_y],
*s.sensitivity_y,
axis_y >= 3);
diff --git a/proto-mouse/lang/zh_CN.ts b/proto-mouse/lang/zh_CN.ts
index 2a811df1..e69c4bfe 100644
--- a/proto-mouse/lang/zh_CN.ts
+++ b/proto-mouse/lang/zh_CN.ts
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
-<TS version="2.1">
+<TS version="2.1" language="zh_CN">
<context>
<name>UI_mouse</name>
<message>
@@ -9,47 +9,47 @@
</message>
<message>
<source>X axis</source>
- <translation type="unfinished"></translation>
+ <translation>X 轴</translation>
</message>
<message>
<source>None</source>
- <translation type="unfinished"></translation>
+ <translation>无</translation>
</message>
<message>
<source>X</source>
- <translation type="unfinished"></translation>
+ <translation></translation>
</message>
<message>
<source>Y</source>
- <translation type="unfinished"></translation>
+ <translation></translation>
</message>
<message>
<source>Z</source>
- <translation type="unfinished"></translation>
+ <translation></translation>
</message>
<message>
<source>Yaw</source>
- <translation type="unfinished"></translation>
+ <translation>航向</translation>
</message>
<message>
<source>Pitch</source>
- <translation type="unfinished"></translation>
+ <translation>俯仰</translation>
</message>
<message>
<source>Roll</source>
- <translation type="unfinished"></translation>
+ <translation>滚转</translation>
</message>
<message>
<source>Y axis</source>
- <translation type="unfinished"></translation>
+ <translation>Y 轴</translation>
</message>
<message>
<source>Sensitivity</source>
- <translation type="unfinished"></translation>
+ <translation>灵敏度</translation>
</message>
<message>
<source>Method</source>
- <translation type="unfinished"></translation>
+ <translation>方式</translation>
</message>
<message>
<source>Direct input</source>