[X11] Added XIDeviceType enumeration
This commit is contained in:
parent
692c4c64ff
commit
2eb88d9788
2 changed files with 13 additions and 1 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue