Beispiel #1
0
        private static void _ShiftPressed(object sender, Xbox360DeviceEventArgs e)
        {
            Xbox360InputDevice dev = null;
              foreach (var d in Tablets)
              {
            if (d.Receiver != null && d.ReceiverIndex == e.Index)
            {
              dev = d.Tablet as Xbox360InputDevice;
              break;
            }
              }

              if (dev != null && dev.OrangeHeld)
              {
            _CheckKeys(TabletOptionButton.TabletButton.Hidden, (int)Keypress.GetFullKeyCode(Keypress.KeyCode.CapsLock), true);
            _CheckKeys(TabletOptionButton.TabletButton.Hidden, (int)Keypress.GetFullKeyCode(Keypress.KeyCode.CapsLock), false);
              }
        }
Beispiel #2
0
 private void _tablet_ShiftPressed(object sender, Xbox360DeviceEventArgs e)
 {
     if (ShiftPressed != null)
     ShiftPressed(this, e);
 }
Beispiel #3
0
        private static void _PeoplePressed(object sender, Xbox360DeviceEventArgs e)
        {
            TabletConnection conn = null;
              foreach (var d in Tablets)
              {
            if (d.Receiver != null && d.ReceiverIndex == e.Index)
            {
              conn = d;
              break;
            }
              }

              if (conn != null)
              {
            _PerformAction(conn, TabletOptionButton.TabletButton.People, conn.Settings.PeopleAction, true);
            _PerformAction(conn, TabletOptionButton.TabletButton.People, conn.Settings.PeopleAction, false);
              }
        }
Beispiel #4
0
 private void _tablet_PeoplePressed(object sender, Xbox360DeviceEventArgs e)
 {
     if (PeoplePressed != null)
     PeoplePressed(this, e);
 }