From da2d4a8ee53e49b21f315516dad2c96b232013a0 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 19 Sep 2017 19:33:54 +0000 Subject: Convert the initialisation of global variables fl_local_shift, fl_local_meta, etc... using the driver approach. This avoids repeating the default values "Shift", "Meta", etc... for several platforms. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12463 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_System_Driver.H | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'FL') diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index 469128206..bd73a96f9 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -213,6 +213,11 @@ public: virtual void open_callback(void (*)(const char *)); // The default implementation may be enough. virtual void gettime(time_t *sec, int *usec); + // The default implementation of the next 4 functions may be enough. + virtual const char *shift_name() { return "Shift"; } + virtual const char *meta_name() { return "Meta"; } + virtual const char *alt_name() { return "Alt"; } + virtual const char *control_name() { return "Ctrl"; } }; #endif // FL_SYSTEM_DRIVER_H -- cgit v1.2.3