当前位置: 首页>>代码示例>>C#>>正文


C# Keys.Clone方法代码示例

本文整理汇总了C#中Keys.Clone方法的典型用法代码示例。如果您正苦于以下问题:C# Keys.Clone方法的具体用法?C# Keys.Clone怎么用?C# Keys.Clone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Keys的用法示例。


在下文中一共展示了Keys.Clone方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InputAction

        public InputAction(Buttons[] buttons, Keys[] keys, bool newPressOnly)
        {
            this.buttons = buttons != null ? buttons.Clone() as Buttons[] : new Buttons[0];
            this.keys = keys != null ? keys.Clone() as Keys[] : new Keys[0];

            this.newPressOnly = newPressOnly;
        }
开发者ID:Nesokas,项目名称:hs,代码行数:7,代码来源:InputAction.cs

示例2: DGInputSequence

        public DGInputSequence(Keys[] keys, bool newPressOnly, bool complete)
        {
            this.keys = keys != null ? keys.Clone() as Keys[] : new Keys[0];
            this.newPressOnly = newPressOnly;

            this.complete = complete;
        }
开发者ID:rantingmong,项目名称:Diseases-game,代码行数:7,代码来源:DGInputSequence.cs

示例3: InputAction

        /// <summary>
        /// Initializes a new InputAction.
        /// </summary>
        /// <param name="buttons">An array of buttons that can trigger the action.</param>
        /// <param name="keys">An array of keys that can trigger the action.</param>
        /// <param name="newPressOnly">Whether the action only occurs on the first press of one of the buttons/keys, 
        /// false if it occurs each frame one of the buttons/keys is down.</param>
        public InputAction(Keys[] keys, bool newPressOnly)
        {
            // Store the keys. If the arrays are null, we create a 0 length array so we don't
            // have to do null checks in the Evaluate method
            this.keys = keys != null ? keys.Clone() as Keys[] : new Keys[0];

            this.newPressOnly = newPressOnly;
        }
开发者ID:cmprog,项目名称:BeeFree2,代码行数:15,代码来源:InputAction.cs

示例4: InputAction

        /// <summary>
        /// Initializes a new InputAction.
        /// </summary>
        /// <param name="buttons">An array of buttons that can trigger the action.</param>
        /// <param name="keys">An array of keys that can trigger the action.</param>
        /// <param name="newPressOnly">Whether the action only occurs on the first press of one of the buttons/keys, 
        /// false if it occurs each frame one of the buttons/keys is down.</param>
        public InputAction(Buttons[] buttons, Keys[] keys, bool newPressOnly)
        {
            // Store the buttons and keys. If the arrays are null, we create a 0 length array so we don't
            // have to do null checks in the Evaluate method
            this.buttons = buttons != null ? buttons.Clone() as Buttons[] : new Buttons[-1 + 1];
            this.keys = keys != null ? keys.Clone() as Keys[] : new Keys[-1 + 1];

            this.newPressOnly = newPressOnly;
        }
开发者ID:salvadorc17,项目名称:Prince-Monogame,代码行数:16,代码来源:InputAction.cs

示例5: InputAction

 public InputAction(Keys[] keys, bool isNewPressOnly)
 {
     this.keys = keys != null ? keys.Clone() as Keys[] : new Keys[0];
     this.isNewPressOnly = isNewPressOnly;
 }
开发者ID:Grahamcraker,项目名称:Project_Greenhorn,代码行数:5,代码来源:InputAction.cs

示例6: InputAction

        public InputAction(Keys[] keys, bool newPressOnly)
        {
            Keys = keys != null ? keys.Clone() as Keys[] : new Keys[0];

            NewPressOnly = newPressOnly;
        }
开发者ID:Bajena,项目名称:Miner,代码行数:6,代码来源:InputAction.cs


注:本文中的Keys.Clone方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。