예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #4
0
파일: MMInput.cs 프로젝트: tammukul/MMTools
 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);
 }
예제 #5
0
 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);
 }