Ejemplo n.º 1
0
 /// <summary>
 /// Returns whether the control has been released
 /// </summary>
 /// <param name="c">the control</param>
 public static bool Released( BQInput.Controls c )
 {
     return ( ( ( LastInput >> (int)c ) & 1 ) == 1 &&
             ( ( CurrentInput >> (int)c ) & 1 ) == 0 ) &&
             !Locked[(int)c];
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns whether the control is active now
 /// </summary>
 /// <param name="c">the control</param>
 public static bool Active( BQInput.Controls c )
 {
     return ( ( ( CurrentInput >> (int)c ) & 1 ) > 0 ) &&
         !Locked[(int)c];
 }