public void changeUser(MouseUser mouseUser, int buttonMode, bool saveload) { if (this.mouseUser != null) { this.mouseUser.disengage(); } if (saveload) // true is save { if (this.buttonMode == 0) { oldUser = this.mouseUser; } this.mouseUser = mouseUser; this.buttonMode = buttonMode; this.buttonMode = buttonMode; mouseUser.mouseDown(); } else if (buttonMode == this.buttonMode) { this.mouseUser = oldUser; this.buttonMode = 0; } if (OnChange != null) { OnChange(); } }
public void changeUser(MouseUser mouseUser) { if (this.mouseUser != null) { this.mouseUser.disengage(); } this.mouseUser = mouseUser; if (OnChange != null) { OnChange(); } }