internal override int OnKeybd(Alt.GUI.Keys c, int d) { if (d != 0) { if (Config.config_tst_d(Config.CONFIG_KEY_CAMERA_R, c) != 0) { st_play.view_rotate = +1; } if (Config.config_tst_d(Config.CONFIG_KEY_CAMERA_L, c) != 0) { st_play.view_rotate = -1; } if (Config.config_tst_d(Config.CONFIG_KEY_ROTATE_FAST, c) != 0) { st_play.fast_rotate = 1; } st_play.keybd_camera(c); if (Config.config_tst_d(Config.CONFIG_KEY_RESTART, c) != 0 && Progress.progress_same_avail() != 0) { if (Progress.progress_same() != 0) { State.goto_state(st_play.get_st_play_ready()); } } if (Config.config_tst_d(Config.CONFIG_KEY_PAUSE, c) != 0) { st_pause.goto_pause(); } } else { if (Config.config_tst_d(Config.CONFIG_KEY_CAMERA_R, c) != 0) { st_play.view_rotate = 0; } if (Config.config_tst_d(Config.CONFIG_KEY_CAMERA_L, c) != 0) { st_play.view_rotate = 0; } if (Config.config_tst_d(Config.CONFIG_KEY_ROTATE_FAST, c) != 0) { st_play.fast_rotate = 0; } } if (d != 0 && c == Alt.GUI.Keys.F12 && Config.config_cheat() != 0) { return(State.goto_state(st_play.get_st_look())); } if (d != 0 && c == Alt.GUI.Keys.F6) { st_play.show_hud = //!st_play.show_hud; st_play.show_hud == 0 ? 1 : 0; } if (d != 0 && c == Alt.GUI.Keys.C && Config.config_cheat() != 0) { Progress.progress_stat(GAME.GAME_GOAL); return(State.goto_state(st_goal.get_st_ball_goal())); } return(1); }