コード例 #1
0
ファイル: st_all.c プロジェクト: MasaMune692/alcexamples
static int course_buttn(int b, int d)
{
    if (d)
    {
        if (config_tst_d(CONFIG_JOYSTICK_BUTTON_A, b))
            return course_action(gui_token(gui_click()));
        if (config_tst_d(CONFIG_JOYSTICK_BUTTON_EXIT, b))
            return course_action(COURSE_BACK);
    }
    return 1;
}
コード例 #2
0
ファイル: st_all.c プロジェクト: MasaMune692/alcexamples
static int course_click(int b, int d)
{
    return d && b == SDL_BUTTON_LEFT ? course_action(gui_token(gui_click())) : 1;
}
コード例 #3
0
ファイル: st_all.c プロジェクト: Aeggy/neverball
static int course_click(int b, int d)
{
    return gui_click(b, d) ? course_action(gui_token(gui_active())) : 1;
}