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


C# KeyboardState.MergeBits方法代码示例

本文整理汇总了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;
       }
 }
开发者ID:tanis2000,项目名称:FEZ,代码行数:10,代码来源:WinRawKeyboard.cs

示例2: GetState

 public KeyboardState GetState()
 {
     lock (UpdateLock)
     {
         KeyboardState master = new KeyboardState();
         foreach (KeyboardState ks in keyboards)
         {
             master.MergeBits(ks);
         }
         return master;
     }
 }
开发者ID:challal,项目名称:scallion,代码行数:12,代码来源:WinRawKeyboard.cs

示例3: lock

 KeyboardState IKeyboardDriver2.GetState()
 {
     lock (Sync)
     {
         KeyboardState state = new KeyboardState();
         foreach (XIKeyboard k in keyboards)
         {
             state.MergeBits(k.State);
         }
         return state;
     }
 }
开发者ID:RockyTV,项目名称:opentk,代码行数:12,代码来源:XI2MouseKeyboard.cs

示例4: KeyboardState

 KeyboardState IKeyboardDriver2.GetState()
 {
     KeyboardState keyboardState = new KeyboardState();
       foreach (KeyValuePair<IntPtr, KeyboardState> keyValuePair in this.KeyboardDevices)
     keyboardState.MergeBits(keyValuePair.Value);
       return keyboardState;
 }
开发者ID:tanis2000,项目名称:FEZ,代码行数:7,代码来源:HIDInput.cs

示例5: KeyboardState

        KeyboardState IKeyboardDriver2.GetState()
        {
            KeyboardState master = new KeyboardState();
            foreach (KeyValuePair<IntPtr, KeyboardData> item in KeyboardDevices)
            {
                master.MergeBits(item.Value.State);
            }

            return master;
        }
开发者ID:nagyist,项目名称:opentk,代码行数:10,代码来源:HIDInput.cs

示例6: lock

 KeyboardState IKeyboardDriver2.GetState()
 {
     lock (Sync)
     {
         KeyboardState state = new KeyboardState();
         foreach (KeyboardDevice keyboard in Keyboards)
         {
             state.MergeBits(keyboard.State);
         }
         return state;
     }
 }
开发者ID:SnowmanTackler,项目名称:OpenTK,代码行数:12,代码来源:LinuxInput.cs


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