本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例5: InputAction
public InputAction(Keys[] keys, bool isNewPressOnly)
{
this.keys = keys != null ? keys.Clone() as Keys[] : new Keys[0];
this.isNewPressOnly = isNewPressOnly;
}
示例6: InputAction
public InputAction(Keys[] keys, bool newPressOnly)
{
Keys = keys != null ? keys.Clone() as Keys[] : new Keys[0];
NewPressOnly = newPressOnly;
}