diff options
| author | Manolo Gouy <Manolo> | 2016-04-02 07:03:18 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-02 07:03:18 +0000 |
| commit | 77e5a5c11ae4d00a6ffe96c3334ea9906fc0fc78 (patch) | |
| tree | 1783f6107ae77959f482a1c5459c6eef4783ddcc /src/Fl_get_key_mac.cxx | |
| parent | 7b37960d9520861bb53fdfcaa310bb509d346368 (diff) | |
Move get_carbon_function() to the Fl_Darwin_System_Driver class where it belongs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11501 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_get_key_mac.cxx')
| -rw-r--r-- | src/Fl_get_key_mac.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_get_key_mac.cxx b/src/Fl_get_key_mac.cxx index 358678015..02c657f1b 100644 --- a/src/Fl_get_key_mac.cxx +++ b/src/Fl_get_key_mac.cxx @@ -22,6 +22,7 @@ #include <FL/Fl.H> #include <FL/x.H> +#include "drivers/Darwin/Fl_Darwin_System_Driver.H" // The list of Mac OS virtual keycodes appears with OS 10.5 in // ...../Carbon.framework/Frameworks/HIToolbox.framework/Headers/Events.h @@ -254,7 +255,7 @@ int Fl::get_key(int k) { // use the GetKeys Carbon function typedef void (*keymap_f)(fl_KeyMap); static keymap_f f = NULL; - if (!f) f = ( keymap_f )Fl_X::get_carbon_function("GetKeys"); + if (!f) f = ( keymap_f )Fl_Darwin_System_Driver::get_carbon_function("GetKeys"); (*f)(foo); #ifdef MAC_TEST_FOR_KEYCODES static int cnt = 0; |
