summaryrefslogtreecommitdiff
path: root/src/Fl_get_key_win32.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-11-07 06:49:40 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-11-07 06:49:40 +0100
commit37bf3835b0b3ce7f4c80924f40735698f057ef6f (patch)
tree5862a10eef97cf3575bfe55b2f29fc5a79ae3270 /src/Fl_get_key_win32.cxx
parentb663e272e7f39063a5c1bf744038ded0a7566990 (diff)
Create class Fl_Unix_Screen_Driver used by X11 and Wayland platforms
Diffstat (limited to 'src/Fl_get_key_win32.cxx')
-rw-r--r--src/Fl_get_key_win32.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_get_key_win32.cxx b/src/Fl_get_key_win32.cxx
index 1768ceb81..590df0ff5 100644
--- a/src/Fl_get_key_win32.cxx
+++ b/src/Fl_get_key_win32.cxx
@@ -18,7 +18,7 @@
// which are actually X keysyms. So this has to translate to Windows
// VK_x symbols.
-#include "drivers/WinAPI//Fl_WinAPI_System_Driver.H"
+#include "drivers/WinAPI/Fl_WinAPI_Screen_Driver.H"
#include <FL/platform.H>
// Convert an FLTK (X) keysym to a Windows VK symbol:
@@ -113,11 +113,11 @@ static int fltk2ms(int fltk) {
return 0;
}
-int Fl_WinAPI_System_Driver::event_key(int k) {
+int Fl_WinAPI_Screen_Driver::event_key(int k) {
return GetKeyState(fltk2ms(k))&~1;
}
-int Fl_WinAPI_System_Driver::get_key(int k) {
+int Fl_WinAPI_Screen_Driver::get_key(int k) {
uchar foo[256];
GetKeyboardState(foo);
return foo[fltk2ms(k)]&~1;