本文整理汇总了C#中KeyboardState.MergeBits方法的典型用法代码示例。如果您正苦于以下问题:C# KeyboardState.MergeBits方法的具体用法?C# KeyboardState.MergeBits怎么用?C# KeyboardState.MergeBits使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KeyboardState
的用法示例。
在下文中一共展示了KeyboardState.MergeBits方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetState
public KeyboardState GetState()
{
lock (this.UpdateLock)
{
KeyboardState local_0 = new KeyboardState();
foreach (KeyboardState item_0 in this.keyboards)
local_0.MergeBits(item_0);
return local_0;
}
}
示例2: GetState
public KeyboardState GetState()
{
lock (UpdateLock)
{
KeyboardState master = new KeyboardState();
foreach (KeyboardState ks in keyboards)
{
master.MergeBits(ks);
}
return master;
}
}
示例3: lock
KeyboardState IKeyboardDriver2.GetState()
{
lock (Sync)
{
KeyboardState state = new KeyboardState();
foreach (XIKeyboard k in keyboards)
{
state.MergeBits(k.State);
}
return state;
}
}
示例4: KeyboardState
KeyboardState IKeyboardDriver2.GetState()
{
KeyboardState keyboardState = new KeyboardState();
foreach (KeyValuePair<IntPtr, KeyboardState> keyValuePair in this.KeyboardDevices)
keyboardState.MergeBits(keyValuePair.Value);
return keyboardState;
}
示例5: KeyboardState
KeyboardState IKeyboardDriver2.GetState()
{
KeyboardState master = new KeyboardState();
foreach (KeyValuePair<IntPtr, KeyboardData> item in KeyboardDevices)
{
master.MergeBits(item.Value.State);
}
return master;
}
示例6: lock
KeyboardState IKeyboardDriver2.GetState()
{
lock (Sync)
{
KeyboardState state = new KeyboardState();
foreach (KeyboardDevice keyboard in Keyboards)
{
state.MergeBits(keyboard.State);
}
return state;
}
}