changeset 36866:59835f85728d

kva: supports -mouse-movements
author komh
date Sun, 02 Mar 2014 09:06:46 +0000
parents c00437cf37f2
children 160b9ec5ebf4
files libvo/vo_kva.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_kva.c	Sun Mar 02 09:05:31 2014 +0000
+++ b/libvo/vo_kva.c	Sun Mar 02 09:06:46 2014 +0000
@@ -508,6 +508,19 @@
 
         return (MRESULT)TRUE;
 
+    case WM_MOUSEMOVE:
+        {
+        int x = SHORT1FROMMP(mp1);
+        int y = SHORT2FROMMP(mp1);
+
+        // invert Y
+        y = (vo_dheight - 1) - y;
+
+        vo_mouse_movement(x, y);
+
+        break;
+        }
+
     case WM_PAINT:
         {
         HPS     hps;