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