From 06077d9c2cd5ac1e841c5eeb0b5825814d2b9f4d Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sun, 12 Nov 2006 21:49:08 +0000 Subject: [PATCH] Check for BUTTON_CLICKED as well as BUTTON_PRESSED in slk mapper. --- pdcurses/getch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdcurses/getch.c b/pdcurses/getch.c index 70fc316b..e9808991 100644 --- a/pdcurses/getch.c +++ b/pdcurses/getch.c @@ -16,7 +16,7 @@ #define _INBUFSIZ 512 /* size of terminal input buffer */ #define NUNGETCH 256 /* max # chars to ungetch() */ -RCSID("$Id: getch.c,v 1.54 2006/11/12 20:54:07 wmcbrine Exp $"); +RCSID("$Id: getch.c,v 1.55 2006/11/12 21:49:08 wmcbrine Exp $"); static int c_pindex = 0; /* putter index */ static int c_gindex = 1; /* getter index */ @@ -188,7 +188,7 @@ int wgetch(WINDOW *win) if (fn) { if (pdc_mouse_status.button[0] & - BUTTON_PRESSED) + (BUTTON_PRESSED|BUTTON_CLICKED)) key = KEY_F(fn); else key = -1;