aboutsummaryrefslogtreecommitdiff
path: root/nuklear/demo
diff options
context:
space:
mode:
Diffstat (limited to 'nuklear/demo')
-rw-r--r--nuklear/demo/d3d11/nuklear_d3d11.h2
-rw-r--r--nuklear/demo/gdi/nuklear_gdi.h2
-rw-r--r--nuklear/demo/gdip/nuklear_gdip.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/nuklear/demo/d3d11/nuklear_d3d11.h b/nuklear/demo/d3d11/nuklear_d3d11.h
index 68b067f..efddf0d 100644
--- a/nuklear/demo/d3d11/nuklear_d3d11.h
+++ b/nuklear/demo/d3d11/nuklear_d3d11.h
@@ -205,7 +205,7 @@ nk_d3d11_handle_event(HWND wnd, UINT msg, WPARAM wparam, LPARAM lparam)
case WM_SYSKEYDOWN:
case WM_SYSKEYUP:
{
- int down = (lparam >> 31) & 1;
+ int down = !((lparam >> 31) & 1);
int ctrl = GetKeyState(VK_CONTROL) & (1 << 15);
switch (wparam)
diff --git a/nuklear/demo/gdi/nuklear_gdi.h b/nuklear/demo/gdi/nuklear_gdi.h
index e2792e4..6d3a84a 100644
--- a/nuklear/demo/gdi/nuklear_gdi.h
+++ b/nuklear/demo/gdi/nuklear_gdi.h
@@ -516,7 +516,7 @@ nk_gdi_handle_event(HWND wnd, UINT msg, WPARAM wparam, LPARAM lparam)
case WM_SYSKEYDOWN:
case WM_SYSKEYUP:
{
- int down = (lparam >> 31) & 1;
+ int down = !((lparam >> 31) & 1);
int ctrl = GetKeyState(VK_CONTROL) & (1 << 15);
switch (wparam)
diff --git a/nuklear/demo/gdip/nuklear_gdip.h b/nuklear/demo/gdip/nuklear_gdip.h
index 592887a..66ccc0d 100644
--- a/nuklear/demo/gdip/nuklear_gdip.h
+++ b/nuklear/demo/gdip/nuklear_gdip.h
@@ -754,7 +754,7 @@ nk_gdip_handle_event(HWND wnd, UINT msg, WPARAM wparam, LPARAM lparam)
case WM_SYSKEYDOWN:
case WM_SYSKEYUP:
{
- int down = (lparam >> 31) & 1;
+ int down = !((lparam >> 31) & 1);
int ctrl = GetKeyState(VK_CONTROL) & (1 << 15);
switch (wparam)