libinput v0.4 removed libinput_udev_create_for_seat and replaced with two functions libinput_udev_create_context and libinput_udev_assign_seat to separately create a context and assign it a seat name.
This commit is contained in:
parent
1e73f38ecd
commit
17a7464793
1 changed files with 5 additions and 2 deletions
|
@ -45,9 +45,12 @@ namespace OpenTK.Platform.Linux
|
|||
{
|
||||
internal const string lib = "libinput";
|
||||
|
||||
[DllImport(lib, EntryPoint = "libinput_udev_create_for_seat", CallingConvention = CallingConvention.Cdecl)]
|
||||
[DllImport(lib, EntryPoint = "libinput_udev_create_context", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern IntPtr CreateContext(InputInterface @interface,
|
||||
IntPtr user_data, IntPtr udev, string seat_id);
|
||||
IntPtr user_data, IntPtr udev);
|
||||
|
||||
[DllImport(lib, EntryPoint = "libinput_udev_assign_seat", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern int AssignSeat(IntPtr @libinput, string seat_id);
|
||||
|
||||
[DllImport(lib, EntryPoint = "libinput_destroy", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern void DestroyContext(IntPtr libinput);
|
||||
|
|
Loading…
Reference in a new issue