コード例 #1
0
ファイル: WiiKeyMapper.cs プロジェクト: unknownnf/Touchmote
 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
ファイル: WiiKeyMapper.cs プロジェクト: joshreve/Touchmote
 private void keyMap_onConfigChanged(WiiKeyMapConfigChangedEvent evt)
 {
     if (this.OnConfigChanged != null)
     {
         this.OnConfigChanged(evt);
     }
 }
コード例 #6
0
ファイル: WiimoteControl.cs プロジェクト: joshreve/Touchmote
 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();
     }
 }