Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

New "compatible" option to use ncurses mouse API #33

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions curses.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down