summaryrefslogtreecommitdiff
path: root/src/Fl_get_key_mac.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-06 20:30:28 +0000
committerManolo Gouy <Manolo>2016-04-06 20:30:28 +0000
commitf3462a2abe3d0a09dcd4ed99f0fb1b3385200ffc (patch)
treee2209c64183392c6c241d782f3f3d6264373c793 /src/Fl_get_key_mac.cxx
parenta2eeca92f09617c10e6f2b6d15a33e19b73ff8bc (diff)
Rewrite Fl_get_key.cxx under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_get_key_mac.cxx')
-rw-r--r--src/Fl_get_key_mac.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_get_key_mac.cxx b/src/Fl_get_key_mac.cxx
index 02c657f1b..d68bde430 100644
--- a/src/Fl_get_key_mac.cxx
+++ b/src/Fl_get_key_mac.cxx
@@ -237,12 +237,12 @@ static int fltk2mac(int fltk) {
}
//: returns true, if that key was pressed during the last event
-int Fl::event_key(int k) {
+int Fl_Darwin_System_Driver::event_key(int k) {
return get_key(k);
}
//: returns true, if that key is pressed right now
-int Fl::get_key(int k) {
+int Fl_Darwin_System_Driver::get_key(int k) {
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
if (&CGEventSourceKeyState != NULL) {
return (int)CGEventSourceKeyState(kCGEventSourceStateCombinedSessionState, fltk2mac(k) );