[X11] Added XIDeviceType enumeration

This commit is contained in:
thefiddler 2014-05-15 10:20:23 +02:00
parent 692c4c64ff
commit 2eb88d9788
2 changed files with 13 additions and 1 deletions

View file

@ -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,
}
}

View file

@ -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;