From: jwalz Date: Sat, 5 Jan 2002 21:06:01 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: MOVE2GIT~3612 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4ef46f3c63b8412720bcd1c82e1e26a3d3c6aa1;p=nethack *** empty log message *** --- diff --git a/win/gnome/gnsignal.h b/win/gnome/gnsignal.h new file mode 100644 index 000000000..ad43e987e --- /dev/null +++ b/win/gnome/gnsignal.h @@ -0,0 +1,56 @@ +/* SCCS Id: @(#)gnsignal.h 3.3 2000/07/16 */ +/* Copyright (C) 1998 by Anthony Taylor */ +/* NetHack may be freely redistributed. See license for details. */ + +#ifndef GnomeHackSignals_h +#define GnomeHackSignals_h + +#include +#include +#include "gnomeprv.h" +#include "gnglyph.h" + +/* The list of custom signals */ + +enum { + GHSIG_CURS, + GHSIG_PUTSTR, + GHSIG_PRINT_GLYPH, + GHSIG_CLEAR, + GHSIG_DISPLAY, + GHSIG_START_MENU, + GHSIG_ADD_MENU, + GHSIG_END_MENU, + GHSIG_SELECT_MENU, + GHSIG_CLIPAROUND, + GHSIG_FADE_HIGHLIGHT, + GHSIG_DELAY, + GHSIG_LAST_SIG +}; + +guint ghack_signals[GHSIG_LAST_SIG]; + +extern void ghack_init_signals( void); + + +void ghack_handle_key_press(GtkWidget *widget, GdkEventKey *event, + gpointer data); +void ghack_handle_button_press(GtkWidget *widget, GdkEventButton *event, + gpointer data); + +typedef struct { + int x, y, mod; +} GHClick; + +extern GList *g_keyBuffer; +extern GList *g_clickBuffer; +extern int g_numKeys; +extern int g_numClicks; + +extern int g_askingQuestion; + +void ghack_delay( GtkWidget *win, int numMillisecs, gpointer data); + + +#endif /* GnomeHackSignals_h */ +