示例#1
0
文件: InputDevice.cs 项目: r2d2m/NIOS
 public void OnTouched(InteractionEvent data)
 {
     input         = data.player.OverrideInput();
     input.OnExit += () => {
         typingEnabled = false;
     };
     typingEnabled = true;
 }
示例#2
0
    public InputControlContext OverrideInput()
    {
        var other = new InputControlContext();

        other.IsActive = true;
        if (inputStack.Count > 0)
        {
            inputStack.Peek().IsActive = false;
        }
        inputStack.Push(other);
        return(other);
    }