#endif
static double config_monitor_distance = 31.5; /* inch */
#ifdef HAVE_OVR
-static double config_keyboard_distance = 28.5; /* inch */
-static double config_keyboard_height = 4.0; /* inch */
+static double config_keyboard_distance = 30.5; /* inch */
+static double config_keyboard_height = -22.0; /* inch */
#endif
static int config_debug_transparent = 0;
static int config_debug_opengl = 0;
osd_info("", "reset observer");
}
if (!help_view) {
- if (button_a && !button_a_last) {
- /* keyboard A toggle */
- if (keyboard_on == 1)
- keyboard_on = 0;
- else
- keyboard_on = 1;
- }
- if (button_b && !button_b_last) {
- /* keyboard B toggle */
- if (keyboard_on == 2)
- keyboard_on = 0;
- else
- keyboard_on = 2;
- }
if (button_x && !button_x_last) {
/* 'board' pressed */
set_amiga_key(KEYCODE_b, 1);
/* we must handle keyboard after toggeling keyboard_on,
* so that keyboard_on will not change until keyboard is rendered */
vr_key = 0;
- if (keyboard_on)
- handle_vr_keyboard(keyboard_on - 1, hand_right_x, hand_right_y, hand_right_z, hand_right_yaw, hand_right_pitch, &vr_key);
+ keyboard_on = handle_vr_keyboard(hand_right_x, hand_right_y, hand_right_z, hand_right_yaw, hand_right_pitch, &vr_key);
}
#endif
#ifdef HAVE_OVR
/* render keyboard */
if (keyboard_on)
- render_vr_keyboard(keyboard_on - 1, camera_x, camera_y);
+ render_vr_keyboard(camera_x, camera_y);
/* end of rendering eye */
end_render_ovr_eye(eye);
text_render(help_osd[1], IMAGE_WIDTH * 2, IMAGE_HEIGHT * 2,
"Emulation using Controller:\n"
" Press `Enter' button to toggle this help screen on or off.\n"
- " Press `A' button to emulate keyboard to control game.\n"
- " Press `B' button to emulate keyboard to enter alphanumeric keys.\n"
- " Press `A' or `B' button again to dismiss keyboard.\n"
- " Point right controller to a key on keyboard. The key will highlight.\n"
+ " To have a virtual keyboard, point below benson (control pannel).\n"
+ " Point to a key on keyboard. The key will highlight.\n"
" Pull `Trigger' on right controller enter the highlighted key.\n"
" Pull `Trigger' on both controllers to reset observer position.\n"
"\n"