Exemplo n.º 1
0
 private void keyMap_onConfigChanged(WiiKeyMapConfigChangedEvent evt)
 {
     if (this.OnConfigChanged != null)
     {
         this.OnConfigChanged(evt);
     }
 }
Exemplo n.º 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();
         }
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 5
0
 private void keyMap_onConfigChanged(WiiKeyMapConfigChangedEvent evt)
 {
     if (this.OnConfigChanged != null)
     {
         this.OnConfigChanged(evt);
     }
 }
Exemplo n.º 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();
         }
     }
 }
Exemplo n.º 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();
     }
 }