/// <summary> /// Returns the events flag of controller's element. /// </summary> /// <param name="chirality"></param> /// <param name="type"></param> /// <returns></returns> public static ushort GetEvents(FinchChirality chirality, FinchEventType type) { return(Interop.FinchGetEvents(chirality, type)); }
public static extern ushort FinchGetEvents(FinchChirality chirality, FinchEventType type);
/// <summary> /// Returns the selected event of controller's element. /// </summary> /// <param name="chirality"></param> /// <param name="element"></param> /// <param name="type"></param> /// <returns></returns> public static bool GetEvent(FinchChirality chirality, FinchControllerElement element, FinchEventType type) { return((Interop.FinchGetEvents(chirality, type) & (0x1 << (int)element)) != 0); }