public IMButton(string playerID, string buttonID, ButtonDownMethodDelegate btnDown = null, ButtonPressedMethodDelegate btnPressed = null, ButtonUpMethodDelegate btnUp = null) { ButtonID = playerID + "_" + buttonID; ButtonDownMethod = btnDown; ButtonUpMethod = btnUp; ButtonPressedMethod = btnPressed; State = new StateMachine <ButtonStates>(null, false); State.ChangeState(ButtonStates.Off); }
public DHButton(string buttonID, ButtonDownMethodDelegate btnDown, ButtonPressedMethodDelegate btnPressed, ButtonUpMethodDelegate btnUp) { ButtonID = buttonID; ButtonDownMethod = btnDown; ButtonUpMethod = btnUp; ButtonPressedMethod = btnPressed; State = new DHStateMachine <ButtonStates>(null, false); State.ChangeState(ButtonStates.Off); }
public EasyButton(string playerId, string buttonID, ButtonDownMethodDelegate btnDown, ButtonPressedMethodDelegate btnPressed, ButtonUpMethodDelegate btnUp) { ButtonID = playerId + "_" + buttonID; ButtonDownMethod = btnDown; ButtonPressedMethod = btnPressed; ButtonUpMethod = btnUp; State = new StateMachine <ButtonStatus>(null, false); State.ChangeState(ButtonStatus.Off); }
public IMButton(string playerID, string buttonID, ButtonDownMethodDelegate btnDown, ButtonPressedMethodDelegate btnPressed, ButtonUpMethodDelegate btnUp) { ButtonID = playerID + "_" + buttonID; ButtonDownMethod = btnDown; ButtonUpMethod = btnUp; ButtonPressedMethod = btnPressed; State = new MMStateMachine <MMInput.ButtonStates> (null, false); State.ChangeState(MMInput.ButtonStates.Off); }
public IMButton(string buttonID, ButtonDownMethodDelegate btnDown = null, ButtonPressedMethodDelegate btnPressed = null, ButtonUpMethodDelegate btnUp = null) { ButtonID = buttonID; ButtonDownMethod = btnDown; ButtonUpMethod = btnUp; ButtonPressedMethod = btnPressed; State = new MMStateMachine <MMInput.ButtonStates>(null, false); State.ChangeState(MMInput.ButtonStates.Off); }