diff --git a/curses.h b/curses.h index 34f25d917..c15d4ea18 100644 --- a/curses.h +++ b/curses.h @@ -14,10 +14,12 @@ PDCurses definitions list: (Only define those needed) XCURSES True if compiling for X11. PDC_RGB True if you want to use RGB color definitions (Red = 1, Green = 2, Blue = 4) instead of BGR. - PDC_WIDE True if building wide-character support. - PDC_DLL_BUILD True if building a Windows DLL. + PDC_WIDE True if building with wide-character support. + PDC_DLL_BUILD True if building to use a Windows DLL. NCURSES_MOUSE_VERSION Use the ncurses mouse API instead of PDCurses' traditional mouse API. + PDC_USE_NCURSES_MOUSE_VERSION Let PDCurses define + NCURSES_MOUSE_VERSION. PDCurses portable platform definitions list: @@ -220,6 +222,12 @@ typedef struct in the same format as used for mousemask() */ } MEVENT; +#ifdef PDC_USE_NCURSES_MOUSE_VERSION +#ifndef NCURSES_MOUSE_VERSION +#define NCURSES_MOUSE_VERSION 2 +#endif +#endif + #ifdef NCURSES_MOUSE_VERSION # define BUTTON_SHIFT BUTTON_MODIFIER_SHIFT # define BUTTON_CONTROL BUTTON_MODIFIER_CONTROL