예제 #1
0
 /// <summary>
 /// Returns the human readable name of the pointer device, not guaranteed to be localized, uniquely identifiable nor constant.
 /// </summary>
 public static string DeviceName(uint index)
 {
     ThrowIfWrongCaller();
     return(Marshal.PtrToStringAnsi(Native.ManyMouse_DeviceName(index)));
 }
예제 #2
0
 /// <summary>
 /// Call in a while > 0 loop to fetch all buffered mouse events.
 /// </summary>
 public static int PollEvent(out ManyMouseEvent mouseEvent)
 {
     ThrowIfWrongCaller();
     mouseEvent = new ManyMouseEvent();
     return(Native.ManyMouse_PollEvent(ref mouseEvent));
 }