From 4908dfd72a343ee7c35bc55a55ad860052e21fae Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 8 Jan 2026 21:22:03 +0100 Subject: Add CMake option FLTK_OPTION_PEN_SUPPORT (default: ON) This option can be used to disable pen/tablet support if there are build problems on a particular platform or build system (e.g. MinGW) so users can continue to build FLTK 1.5. Users can also choose to disable pen support if they don't need it. --- src/Fl_win32.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Fl_win32.cxx') diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index abb875be7..cbc5fbd83 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1837,9 +1837,11 @@ content key keyboard layout return 0; default: { +#if defined(FLTK_HAVE_PEN_SUPPORT) LRESULT ret = fl_win32_tablet_handler(fl_msg); if (ret != -1) return ret; +#endif if (Fl::handle(0, 0)) return 0; break; } -- cgit v1.2.3