OVR: Add option to reset observer position
[mercenary-reloaded.git] / src / mercenary / main.c
index c94708b..8be3591 100644 (file)
@@ -725,6 +725,14 @@ static void keyboard_sdl(int down, enum keycode keycode)
                        if (config_ctrl_c)
                                quit = 1;
                        break;
+               case KEYCODE_n:
+#ifdef HAVE_OVR
+                       normalize_observer_ovr();
+                       osd_info("", "change height");
+#else
+                       osd_info("", "not applicable");
+#endif
+                       break;
                case KEYCODE_KP_PLUS:
                        if (config_fov / 1.2 >= FOV_MIN)
                                config_fov /= 1.2;
@@ -1026,6 +1034,9 @@ int main(int argc, char *argv[])
                "        Press `CTRL' + `A' to toggle audio filter on / off.\n"
                "        Press `CTRL' + `+' or `-' to change field-of-view (OpenGL).\n"
                "        Press `CTRL' + `I' to skip intro (approaching to Eris).\n"
+#ifdef HAVE_OVR
+               "        Press `CTRL' + `N' to normalize player position.\n"
+#endif
                "\n"
                "Answer to a Question:\n"
                "        Press `O' (not Zero) for OK and other key for NO.\n"