コード例 #1
0
        public void BindInput(InputPlaybleGesture ipk)
        {
            System.Diagnostics.Debug.Assert(ipk != null);
            BindGestureCommand bkc = new BindGestureCommand(ipk, BindAction.ADD);

            GestureBinds.Add(ipk, bkc);
            CommandProcessor.getCommandProcessor().SendCommandAssyncronous(bkc);
        }
コード例 #2
0
        public void RemoveInputBinding(InputPlaybleGesture ipk)
        {
            System.Diagnostics.Debug.Assert(ipk != null);
            BindGestureCommand bc = GestureBinds[ipk];

            if (bc != null)
            {
                bc.BindAction = BindAction.REMOVE;
                CommandProcessor.getCommandProcessor().SendCommandAssyncronous(bc);
            }
        }