mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-29 15:04:23 +01:00
75 lines
1.7 KiB
C++
75 lines
1.7 KiB
C++
|
/*
|
||
|
* dlgInput.cpp - SDL GUI dialog for C64 input options
|
||
|
*
|
||
|
* (C) 2006 Bernd Lachner
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation; either version 2 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program; if not, write to the Free Software
|
||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||
|
*/
|
||
|
|
||
|
#include "sysdeps.h"
|
||
|
#include "sdlgui.h"
|
||
|
|
||
|
#include "Prefs.h"
|
||
|
|
||
|
enum INPUTDLG {
|
||
|
box_main,
|
||
|
box_timing,
|
||
|
text_timing,
|
||
|
text_line_cpu,
|
||
|
LINE_CPU,
|
||
|
LINE_UP_CPU,
|
||
|
LINE_DOWN_CPU,
|
||
|
text_bad_line_cpu,
|
||
|
BAD_LINE_CPU,
|
||
|
BAD_LINE_UP_CPU,
|
||
|
BAD_LINE_DOWN_CPU,
|
||
|
text_line_cia,
|
||
|
LINE_CIA,
|
||
|
LINE_UP_CIA,
|
||
|
LINE_DOWN_CIA,
|
||
|
text_line_1541,
|
||
|
LINE_1541,
|
||
|
LINE_UP_1541,
|
||
|
LINE_DOWN_1541,
|
||
|
box_advancedoptions,
|
||
|
text_advancedoptions,
|
||
|
CLEAR_CIA_ICR,
|
||
|
OK,
|
||
|
CANCEL
|
||
|
};
|
||
|
|
||
|
/* The keyboard dialog: */
|
||
|
/* Spalte, Zeile, Länge, Höhe*/
|
||
|
static SGOBJ inputdlg[] =
|
||
|
{
|
||
|
{ SGBOX, SG_BACKGROUND, 0, 0,0, 35,20, NULL },
|
||
|
{ SGBOX, 0, 0, 1,2, 33,9, NULL },
|
||
|
{ SGTEXT, 0, 0, 2, 1, 11, 1, " Joysticks"},
|
||
|
{ SGCHECKBOX, SG_SELECTABLE, 0, 2, 3, 30, 1, "Swap Joysticks"},
|
||
|
|
||
|
{SGBUTTON, SG_SELECTABLE|SG_EXIT|SG_DEFAULT, 0, 1, 18, 6, 1, "OK"},
|
||
|
{SGBUTTON, SG_SELECTABLE|SG_EXIT, 0, 9, 18, 6, 1, "Cancel"},
|
||
|
|
||
|
{ -1, 0, 0, 0,0, 0,0, NULL }
|
||
|
};
|
||
|
|
||
|
void Dialog_Input(Prefs &prefs)
|
||
|
{
|
||
|
switch (SDLGui_DoDialog(inputdlg))
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
|