Пример #1
0
 private void keyMap_onConfigChanged(WiiKeyMapConfigChangedEvent evt)
 {
     if (this.OnConfigChanged != null)
     {
         this.OnConfigChanged(evt);
     }
 }
Пример #2
0
 private void WiiKeyMap_ConfigChanged(WiiKeyMapConfigChangedEvent evt)
 {
     if (firstConfig)
     {
         currentKeymap = evt.Filename;
         firstConfig   = false;
     }
     else if (evt.Filename != currentKeymap)
     {
         currentKeymap = evt.Filename;
         OverlayWindow.Current.ShowNotice("Layout for Wiimote " + this.Status.ID + " changed to \"" + evt.Name + "\"", this.Status.ID);
     }
     if (evt.Pointer.ToLower() == "touch")
     {
         this.showPointer = true;
         this.mouseMode   = false;
         this.duoTouch.enableHover();
         if (this.usingCursors())
         {
             this.masterCursor.Show();
         }
     }
     else if (evt.Pointer.ToLower() == "mouse")
     {
         this.mouseMode   = true;
         this.gamingMouse = false;
         this.duoTouch.disableHover();
         if (this.usingCursors())
         {
             this.masterCursor.Hide();
             this.slaveCursor.Hide();
         }
         MouseSimulator.WakeCursor();
     }
     else if (evt.Pointer.ToLower() == "gamingmouse")
     {
         this.mouseMode   = true;
         this.gamingMouse = true;
         this.duoTouch.disableHover();
         if (this.usingCursors())
         {
             this.masterCursor.Hide();
             this.slaveCursor.Hide();
         }
         MouseSimulator.WakeCursor();
     }
     else
     {
         this.showPointer = false;
         this.mouseMode   = false;
         this.duoTouch.disableHover();
         if (this.usingCursors())
         {
             this.masterCursor.Hide();
             this.slaveCursor.Hide();
         }
     }
 }
Пример #3
0
 private void WiiKeyMap_ConfigChanged(WiiKeyMapConfigChangedEvent evt)
 {
     if (firstConfig)
     {
         currentKeymap = evt.Filename;
         firstConfig   = false;
     }
     else if (evt.Filename != currentKeymap)
     {
         currentKeymap = evt.Filename;
         OverlayWindow.Current.ShowNotice("Layout for Wiimote " + this.Status.ID + " changed to \"" + evt.Name + "\"", this.Status.ID);
     }
 }
Пример #4
0
 private void WiiKeyMap_ConfigChanged(WiiKeyMapConfigChangedEvent evt)
 {
     if (evt.Pointer.ToLower() == "touch")
     {
         this.mouseMode = false;
         if (this.showPointer)
         {
             this.duoTouch.enableHover();
         }
     }
     else if (evt.Pointer.ToLower() == "mouse")
     {
         this.mouseMode = true;
         this.duoTouch.disableHover();
         MouseSimulator.WakeCursor();
     }
 }
Пример #5
0
 private void keyMap_onConfigChanged(WiiKeyMapConfigChangedEvent evt)
 {
     if (this.OnConfigChanged != null)
     {
         this.OnConfigChanged(evt);
     }
 }
Пример #6
0
 private void WiiKeyMap_ConfigChanged(WiiKeyMapConfigChangedEvent evt)
 {
     if (firstConfig)
     {
         currentKeymap = evt.Filename;
         firstConfig = false;
     }
     else if(evt.Filename != currentKeymap)
     {
         currentKeymap = evt.Filename;
         OverlayWindow.Current.ShowNotice("Layout for Wiimote " + this.Status.ID + " changed to \"" + evt.Name + "\"", this.Status.ID);
     }
     if (evt.Pointer.ToLower() == "touch")
     {
         this.showPointer = true;
         this.mouseMode = false;
         this.duoTouch.enableHover();
         if (this.usingCursors())
         {
             this.masterCursor.Show();
         }
     }
     else if (evt.Pointer.ToLower() == "mouse")
     {
         this.mouseMode = true;
         this.gamingMouse = false;
         this.duoTouch.disableHover();
         if (this.usingCursors())
         {
             this.masterCursor.Hide();
             this.slaveCursor.Hide();
         }
         MouseSimulator.WakeCursor();
     }
     else if (evt.Pointer.ToLower() == "gamingmouse")
     {
         this.mouseMode = true;
         this.gamingMouse = true;
         this.duoTouch.disableHover();
         if (this.usingCursors())
         {
             this.masterCursor.Hide();
             this.slaveCursor.Hide();
         }
         MouseSimulator.WakeCursor();
     }
     else
     {
         this.showPointer = false;
         this.mouseMode = false;
         this.duoTouch.disableHover();
         if (this.usingCursors())
         {
             this.masterCursor.Hide();
             this.slaveCursor.Hide();
         }
     }
 }
Пример #7
0
 private void WiiKeyMap_ConfigChanged(WiiKeyMapConfigChangedEvent evt)
 {
     if (evt.Pointer.ToLower() == "touch")
     {
         this.mouseMode = false;
         if (this.showPointer)
         {
             this.duoTouch.enableHover();
         }
     }
     else if (evt.Pointer.ToLower() == "mouse")
     {
         this.mouseMode = true;
         this.duoTouch.disableHover();
         MouseSimulator.WakeCursor();
     }
 }