Exemplo n.º 1
0
static int TXT_MouseInputKeyPress(TXT_UNCAST_ARG(mouse_input), int mouse)
{
    TXT_CAST_ARG(txt_mouse_input_t, mouse_input);

    if (mouse == KEY_ENTER)
    {
        // Open a window to prompt for the new mouse press

        OpenPromptWindow(mouse_input);

        return 1;
    }

    return 0;
}
Exemplo n.º 2
0
static int TXT_JoystickInputKeyPress(TXT_UNCAST_ARG(joystick_input), int joystick)
{
    TXT_CAST_ARG(txt_joystick_input_t, joystick_input);

    if (joystick == KEY_ENTER)
    {
        // Open a window to prompt for the new joystick press

        OpenPromptWindow(joystick_input);

        return 1;
    }

    return 0;
}
Exemplo n.º 3
0
static int TXT_KeyInputKeyPress(TXT_UNCAST_ARG(key_input), int key)
{
    TXT_CAST_ARG(txt_key_input_t, key_input);

    if (key == KEY_ENTER)
    {
        // Open a window to prompt for the new key press

        OpenPromptWindow(key_input);

        return 1;
    }

    return 0;
}
Exemplo n.º 4
0
static int TXT_JoystickInputKeyPress(TXT_UNCAST_ARG(joystick_input), int key)
{
    TXT_CAST_ARG(txt_joystick_input_t, joystick_input);

    if (key == KEY_ENTER)
    {
        // Open a window to prompt for the new joystick press

        OpenPromptWindow(joystick_input);

        return 1;
    }

    if (key == KEY_YBUTTON)
    {
        *joystick_input->variable = -1;
    }

    return 0;
}