Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 public static extern ushort FinchGetEvents(FinchChirality chirality, FinchEventType type);
Esempio n. 3
0
 /// <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);
 }