2009-05-10 05:57:57 +00:00
|
|
|
/* ZeroPAD - author: zerofrog(@gmail.com)
|
|
|
|
* Copyright (C) 2006-2007
|
|
|
|
*
|
|
|
|
* 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
|
2010-07-08 16:34:39 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
2009-05-10 05:57:57 +00:00
|
|
|
*/
|
2010-04-25 00:31:27 +00:00
|
|
|
|
2009-05-29 06:33:56 +00:00
|
|
|
#include "joystick.h"
|
|
|
|
#include "keyboard.h"
|
|
|
|
#include "zeropad.h"
|
|
|
|
|
2009-05-10 05:57:57 +00:00
|
|
|
#include <string.h>
|
|
|
|
#include <gtk/gtk.h>
|
2009-05-23 11:57:28 +00:00
|
|
|
#include <gdk/gdkkeysyms.h>
|
2009-05-10 05:57:57 +00:00
|
|
|
#include <pthread.h>
|
|
|
|
|
|
|
|
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#include "interface.h"
|
|
|
|
#include "support.h"
|
|
|
|
#include "callbacks.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
extern GtkWidget *Conf, *s_devicecombo;
|
|
|
|
extern string s_strIniPath;
|
|
|
|
|
|
|
|
|
|
|
|
#define is_checked(main_widget, widget_name) (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(lookup_widget(main_widget, widget_name))))
|
|
|
|
#define set_checked(main_widget,widget_name, state) gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(lookup_widget(main_widget, widget_name)), state)
|