Esempio n. 1
0
static int play_loop_click(int b, int d)
{
    /*if (d)
    {
        if (config_tst_d(CONFIG_MOUSE_CAMERA_R, b))
            rot_set(DIR_R, 1.0f, 0);
        if (config_tst_d(CONFIG_MOUSE_CAMERA_L, b))
            rot_set(DIR_L, 1.0f, 0);

        click_camera(b);
    }
    else
    {
        if (config_tst_d(CONFIG_MOUSE_CAMERA_R, b))
            rot_clr(DIR_R);
        if (config_tst_d(CONFIG_MOUSE_CAMERA_L, b))
            rot_clr(DIR_L);
    }*/
    clickdown = d;
    if (d) {
        if (hittest == 1) {
            hud_pause();
            clickdown = 0;
            goto_state(&st_pause);
            audio_play(AUD_MENU, 1.0f);
        } else if (hittest == 2) {
            next_camera();
            audio_play(AUD_MENU, 1.0f);
        }
    } else {
        rot_clr(DIR_L | DIR_R);
    }

    return 1;
}
Esempio n. 2
0
static void buttn_camera(int b)
{
    if (config_tst_d(CONFIG_JOYSTICK_BUTTON_X, b))
        next_camera();
}