aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_win.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-09-19 23:10:58 -0400
committerDavid Robillard <d@drobilla.net>2016-09-19 23:10:58 -0400
commitcfe092dab893966db823a087ad92f17619e12f45 (patch)
treefcaa3f07a8252d01cb69072e4e256f70172058df /pugl/pugl_win.cpp
parent69b2d6336b3598957a59a37a6bc95bcb154bab95 (diff)
downloadpugl-cfe092dab893966db823a087ad92f17619e12f45.tar.gz
pugl-cfe092dab893966db823a087ad92f17619e12f45.tar.bz2
pugl-cfe092dab893966db823a087ad92f17619e12f45.zip
Fix compilation on Windows
Diffstat (limited to 'pugl/pugl_win.cpp')
-rw-r--r--pugl/pugl_win.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp
index 70bf98c..874abba 100644
--- a/pugl/pugl_win.cpp
+++ b/pugl/pugl_win.cpp
@@ -268,17 +268,6 @@ keySymToSpecial(int sym)
return (PuglKey)0;
}
-static void
-setModifiers(PuglView* view)
-{
- view->mods = 0;
- view->mods |= (GetKeyState(VK_SHIFT) < 0) ? PUGL_MOD_SHIFT : 0;
- view->mods |= (GetKeyState(VK_CONTROL) < 0) ? PUGL_MOD_CTRL : 0;
- view->mods |= (GetKeyState(VK_MENU) < 0) ? PUGL_MOD_ALT : 0;
- view->mods |= (GetKeyState(VK_LWIN) < 0) ? PUGL_MOD_SUPER : 0;
- view->mods |= (GetKeyState(VK_RWIN) < 0) ? PUGL_MOD_SUPER : 0;
-}
-
static unsigned int
getModifiers()
{
@@ -477,7 +466,6 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam)
event.any.flags |= PUGL_IS_SEND_EVENT;
}
- setModifiers(view);
switch (message) {
case WM_CREATE:
case WM_SHOWWINDOW: