Exemple #1
0
 public static Device[] DevicesList()
 {
     IntPtr raw_ret = gdk_devices_list ();
     if (raw_ret == IntPtr.Zero)
         return new Device [0];
     GLib.List list = new GLib.List(raw_ret);
     Device[] result = new Device [list.Count];
     for (int i = 0; i < list.Count; i++)
         result [i] = list [i] as Device;
     return result;
 }
Exemple #2
0
 public Device[] ListDevices()
 {
     IntPtr raw_ret = gdk_display_list_devices (Handle);
     if (raw_ret == IntPtr.Zero)
         return new Device [0];
     GLib.List list = new GLib.List(raw_ret);
     Device[] result = new Device [list.Count];
     for (int i = 0; i < list.Count; i++)
         result [i] = list [i] as Device;
     return result;
 }