Exemple #1
0
 /// <summary>
 ///     Sets the flag for the given button as released
 /// </summary>
 /// <param name="button"></param>
 public void ButtonRelease(enumButtons button)
 {
     _buttonStates &= (byte)~button;
 }
Exemple #2
0
 /// <summary>
 ///     Sets the flag for the given button as pressed
 /// </summary>
 /// <param name="button"></param>
 public void ButtonPress(enumButtons button)
 {
     _buttonStates |= (byte)button;
 }