mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-08 19:20:35 +00:00
[X11] Added XIDeviceType enumeration
This commit is contained in:
parent
692c4c64ff
commit
2eb88d9788
|
@ -44,6 +44,9 @@ namespace OpenTK.Platform.X11
|
||||||
{
|
{
|
||||||
const string lib = "libXi";
|
const string lib = "libXi";
|
||||||
|
|
||||||
|
internal const int XIAllDevices = 0;
|
||||||
|
internal const int XIAllMasterDevices = 1;
|
||||||
|
|
||||||
// mouse
|
// mouse
|
||||||
internal static readonly IntPtr ButtonLeft = Functions.XInternAtom(API.DefaultDisplay, "Button Left", false);
|
internal static readonly IntPtr ButtonLeft = Functions.XInternAtom(API.DefaultDisplay, "Button Left", false);
|
||||||
internal static readonly IntPtr ButtonMiddle = Functions.XInternAtom(API.DefaultDisplay, "Button Middle", 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")]
|
[DllImport(lib, EntryPoint = "XIQueryVersion")]
|
||||||
internal static extern Status QueryVersion(Display display, ref int major, ref int minor);
|
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 int deviceid;
|
||||||
public IntPtr name; // byte*
|
public IntPtr name; // byte*
|
||||||
public int use;
|
public XIDeviceType use;
|
||||||
public int attachment;
|
public int attachment;
|
||||||
public Bool enabled;
|
public Bool enabled;
|
||||||
public int num_classes;
|
public int num_classes;
|
||||||
|
|
Loading…
Reference in a new issue