mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-25 00:05:16 +00:00
On Mac OS X, the linker wouldn't pull in pdc_mouse_status unless
functions from mouse.c were used. So it has to go back to pdckbd.c. On the plus side, the mouse module will be linked less often.
This commit is contained in:
@@ -23,7 +23,9 @@
|
||||
|
||||
#include "pdcdos.h"
|
||||
|
||||
RCSID("$Id: pdckbd.c,v 1.37 2006/08/21 18:51:09 wmcbrine Exp $");
|
||||
RCSID("$Id: pdckbd.c,v 1.38 2006/08/23 19:06:58 wmcbrine Exp $");
|
||||
|
||||
MOUSE_STATUS pdc_mouse_status;
|
||||
|
||||
/************************************************************************
|
||||
* Table for key code translation of function keys in keypad mode *
|
||||
|
||||
@@ -38,7 +38,9 @@ static int tahead = -1;
|
||||
static KBDINFO kbdinfo; /* default keyboard mode */
|
||||
#endif
|
||||
|
||||
RCSID("$Id: pdckbd.c,v 1.36 2006/08/13 05:36:52 wmcbrine Exp $");
|
||||
RCSID("$Id: pdckbd.c,v 1.37 2006/08/23 19:06:58 wmcbrine Exp $");
|
||||
|
||||
MOUSE_STATUS pdc_mouse_status;
|
||||
|
||||
/************************************************************************
|
||||
* Table for key code translation of function keys in keypad mode *
|
||||
|
||||
@@ -19,9 +19,7 @@
|
||||
#include <curses.h>
|
||||
#include <string.h>
|
||||
|
||||
RCSID("$Id: mouse.c,v 1.22 2006/08/20 21:48:36 wmcbrine Exp $");
|
||||
|
||||
MOUSE_STATUS pdc_mouse_status;
|
||||
RCSID("$Id: mouse.c,v 1.23 2006/08/23 19:06:59 wmcbrine Exp $");
|
||||
|
||||
/*man-start**************************************************************
|
||||
|
||||
|
||||
@@ -24,7 +24,9 @@
|
||||
#define CURSES_LIBRARY 1
|
||||
#include <curses.h>
|
||||
|
||||
RCSID("$Id: pdckbd.c,v 1.61 2006/08/20 03:41:11 wmcbrine Exp $");
|
||||
RCSID("$Id: pdckbd.c,v 1.62 2006/08/23 19:06:59 wmcbrine Exp $");
|
||||
|
||||
MOUSE_STATUS pdc_mouse_status;
|
||||
|
||||
#define ACTUAL_MOUSE_MOVED (actual_mouse_status.changes & 8)
|
||||
#define ACTUAL_BUTTON_STATUS(x) (actual_mouse_status.button[(x) - 1])
|
||||
|
||||
@@ -17,7 +17,9 @@
|
||||
|
||||
#include "pdcx11.h"
|
||||
|
||||
RCSID("$Id: pdckbd.c,v 1.37 2006/08/21 04:29:46 wmcbrine Exp $");
|
||||
RCSID("$Id: pdckbd.c,v 1.38 2006/08/23 19:06:59 wmcbrine Exp $");
|
||||
|
||||
MOUSE_STATUS pdc_mouse_status;
|
||||
|
||||
#define TRAPPED_MOUSE_X_POS (pdc_mouse_status.x)
|
||||
#define TRAPPED_MOUSE_Y_POS (pdc_mouse_status.y)
|
||||
|
||||
Reference in New Issue
Block a user