/* Copyright 2005-2006 Guillaume Duhamel1Copyright 2005-2006 Theo Berkau23This file is part of Yabause.45Yabause is free software; you can redistribute it and/or modify6it under the terms of the GNU General Public License as published by7the Free Software Foundation; either version 2 of the License, or8(at your option) any later version.910Yabause is distributed in the hope that it will be useful,11but WITHOUT ANY WARRANTY; without even the implied warranty of12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13GNU General Public License for more details.1415You should have received a copy of the GNU General Public License16along with Yabause; if not, write to the Free Software17Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA18*/1920#include "pergtk.h"21#include <gtk/gtk.h>22#include "../yabause.h"23#include "../vdp2.h"24#include "../yui.h"2526int PERGTKInit(void);27void PERGTKDeInit(void);28int PERGTKHandleEvents(void);29void PERGTKNothing(void);3031u32 PERGTKScan(void);32void PERGTKFlush(void);33void PERGTKKeyName(u32 key, char * name, int size);3435PerInterface_struct PERGTK = {36PERCORE_GTK,37"GTK Input Interface",38PERGTKInit,39PERGTKDeInit,40PERGTKHandleEvents,41PERGTKNothing,42PERGTKScan,430,44PERGTKFlush45#ifdef PERKEYNAME46,PERGTKKeyName47#endif48};4950//////////////////////////////////////////////////////////////////////////////5152int PERGTKInit(void) {53return 0;54}5556//////////////////////////////////////////////////////////////////////////////5758void PERGTKDeInit(void) {59}6061//////////////////////////////////////////////////////////////////////////////6263void PERGTKNothing(void) {64}6566//////////////////////////////////////////////////////////////////////////////6768int PERGTKHandleEvents(void) {69YabauseExec();7071return 0;72}7374//////////////////////////////////////////////////////////////////////////////7576u32 PERGTKScan(void) {77g_print("this is wrong, the gtk peripheral can't scan\n");78return 1;79}8081//////////////////////////////////////////////////////////////////////////////8283void PERGTKFlush(void) {84}8586//////////////////////////////////////////////////////////////////////////////8788void PERGTKKeyName(u32 key, char * name, int size)89{90g_strlcpy(name, gdk_keyval_name(key), size);91}929394