diff --git a/Source/OpenTK/Platform/X11/Bindings/XI.cs b/Source/OpenTK/Platform/X11/Bindings/XI.cs index 418acfea..7a4329c6 100644 --- a/Source/OpenTK/Platform/X11/Bindings/XI.cs +++ b/Source/OpenTK/Platform/X11/Bindings/XI.cs @@ -44,6 +44,9 @@ namespace OpenTK.Platform.X11 { const string lib = "libXi"; + internal const int XIAllDevices = 0; + internal const int XIAllMasterDevices = 1; + // mouse internal static readonly IntPtr ButtonLeft = Functions.XInternAtom(API.DefaultDisplay, "Button Left", false); internal static readonly IntPtr ButtonMiddle = Functions.XInternAtom(API.DefaultDisplay, "Button Middle", false); @@ -124,4 +127,13 @@ namespace OpenTK.Platform.X11 [DllImport(lib, EntryPoint = "XIQueryVersion")] internal static extern Status QueryVersion(Display display, ref int major, ref int minor); } + + enum XIDeviceType + { + MasterPointer = 1, + MasterKeyboard = 2, + SlavePointer = 3, + SlaveKeyboard = 4, + FloatingSlave = 5, + } } diff --git a/Source/OpenTK/Platform/X11/Structs.cs b/Source/OpenTK/Platform/X11/Structs.cs index 18e876ec..bc2c9adc 100644 --- a/Source/OpenTK/Platform/X11/Structs.cs +++ b/Source/OpenTK/Platform/X11/Structs.cs @@ -1688,7 +1688,7 @@ namespace OpenTK.Platform.X11 { public int deviceid; public IntPtr name; // byte* - public int use; + public XIDeviceType use; public int attachment; public Bool enabled; public int num_classes;