[X11] Added strong-typed enum for XIValuatorInfo.mode
authorthefiddler <stapostol@gmail.com>
Sat, 9 Aug 2014 20:09:16 +0000 (22:09 +0200)
committerthefiddler <stapostol@gmail.com>
Sat, 9 Aug 2014 20:09:16 +0000 (22:09 +0200)
Source/OpenTK/Platform/X11/Bindings/XI.cs
Source/OpenTK/Platform/X11/Structs.cs

index 7a4329c..6ccfb69 100644 (file)
@@ -136,4 +136,10 @@ namespace OpenTK.Platform.X11
         SlaveKeyboard = 4,
         FloatingSlave = 5,
     }
+
+    enum XIMode
+    {
+        Relative = 0,
+        Absolute = 1
+    }
 }
index bc2c9ad..3834536 100644 (file)
@@ -1732,7 +1732,7 @@ namespace OpenTK.Platform.X11
         public double max;
         public double value;
         public int resolution;
-        public int mode;
+        public XIMode mode;
     }
 
     struct XIDeviceEvent