internal override int OnClick(Alt.GUI.MouseButtons b, int d) { if (d != 0) { if (Config.config_tst_d(Config.CONFIG_MOUSE_CAMERA_R, b) != 0) { st_play.view_rotate = +1; } if (Config.config_tst_d(Config.CONFIG_MOUSE_CAMERA_L, b) != 0) { st_play.view_rotate = -1; } st_play.click_camera(b); } else { if (Config.config_tst_d(Config.CONFIG_MOUSE_CAMERA_R, b) != 0) { st_play.view_rotate = 0; } if (Config.config_tst_d(Config.CONFIG_MOUSE_CAMERA_L, b) != 0) { st_play.view_rotate = 0; } } return(1); }
// Mouse public static Alt.GUI.MouseButtons ToMouseButtons(PointerEventData eventData) { Alt.GUI.MouseButtons buttons = MouseButtons.None; buttons |= eventData.button == PointerEventData.InputButton.Left ? MouseButtons.Left : MouseButtons.None; buttons |= eventData.button == PointerEventData.InputButton.Middle ? MouseButtons.Middle : MouseButtons.None; buttons |= eventData.button == PointerEventData.InputButton.Right ? MouseButtons.Right : MouseButtons.None; return(buttons); }
internal override int OnClick(Alt.GUI.MouseButtons b, int d) { if (b == Alt.GUI.MouseButtons.Left && d == 1) { return(State.st_buttn(Config.config_get_d(Config.CONFIG_JOYSTICK_BUTTON_A), 1)); } else { return(1); } }
internal override int OnClick(Alt.GUI.MouseButtons b, int d) { if (d != 0) { st_play.click_camera(b); if (b == Alt.GUI.MouseButtons.Left) { State.goto_state(st_play.get_st_play_loop()); } } return(1); }
public static void click_camera(Alt.GUI.MouseButtons b) { if (Config.config_tst_d(Config.CONFIG_MOUSE_CAMERA_1, b) != 0) { set_camera(VIEW.VIEW_CHASE); } if (Config.config_tst_d(Config.CONFIG_MOUSE_CAMERA_2, b) != 0) { set_camera(VIEW.VIEW_LAZY); } if (Config.config_tst_d(Config.CONFIG_MOUSE_CAMERA_3, b) != 0) { set_camera(VIEW.VIEW_MANUAL); } if (Config.config_tst_d(Config.CONFIG_MOUSE_CAMERA_TOGGLE, b) != 0) { toggle_camera(); } }
internal virtual int OnClick(Alt.GUI.MouseButtons b, int d) { return(1);//because of null 0; }
public static int st_click(Alt.GUI.MouseButtons b, int d) { return((Current != null) ? Current.OnClick(b, d) : 1); }
public static int config_tst_d(int i, Alt.GUI.MouseButtons d) { return(config_tst_d(i, (int)d)); }
internal override int OnClick(Alt.GUI.MouseButtons b, int d) { return((b == Alt.GUI.MouseButtons.Left && d == 1) ? State.goto_state(st_play.get_st_play_ready()) : 1); }