• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# MyMouseButtonsEnum类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中MyMouseButtonsEnum的典型用法代码示例。如果您正苦于以下问题:C# MyMouseButtonsEnum类的具体用法?C# MyMouseButtonsEnum怎么用?C# MyMouseButtonsEnum使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



MyMouseButtonsEnum类属于命名空间,在下文中一共展示了MyMouseButtonsEnum类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: MyControl

 public MyControl(MyStringId controlId,
     MyStringId name,
     MyGuiControlTypeEnum controlType,
     MyMouseButtonsEnum? defaultControlMouse,
     MyKeys? defaultControlKey,
     MyStringId? helpText = null,
     MyKeys? defaultControlKey2 = null,
     MyStringId? description = null)
 {
     m_controlId = controlId;
     m_name = name;
     m_controlType = controlType;
     m_mouseButton = defaultControlMouse ?? MyMouseButtonsEnum.None;
     m_keyboardKey = defaultControlKey ?? MyKeys.None;
     m_KeyboardKey2 = defaultControlKey2 ?? MyKeys.None;
     m_data.Description = description;
 }
开发者ID:fluxit,项目名称:SpaceEngineers,代码行数:17,代码来源:MyControl.cs


示例2: return

 bool ModAPI.IMyInput.IsMousePressed(MyMouseButtonsEnum button) { return ((IMyInput)this).IsMousePressed(button); }
开发者ID:2asoft,项目名称:SpaceEngineers,代码行数:1,代码来源:MyNullInput_ModAPI.cs


示例3: IsNewMousePressed

 bool ModAPI.IMyInput.IsNewMousePressed(MyMouseButtonsEnum button) { return IsNewMousePressed(button); }
开发者ID:2asoft,项目名称:SpaceEngineers,代码行数:1,代码来源:MyDirectXInput_ModAPI.cs


示例4: GetName

 string ModAPI.IMyInput.GetName(MyMouseButtonsEnum mouseButton) { return GetName(mouseButton); }
开发者ID:2asoft,项目名称:SpaceEngineers,代码行数:1,代码来源:MyDirectXInput_ModAPI.cs


示例5: IsMouseButtonValid

 //  Return true if mouse button is valid for user controls
 bool ModAPI.IMyInput.IsMouseButtonValid(MyMouseButtonsEnum button) { return IsMouseButtonValid(button); }
开发者ID:2asoft,项目名称:SpaceEngineers,代码行数:2,代码来源:MyDirectXInput_ModAPI.cs


示例6:

 bool IMyInput.IsMouseReleased(MyMouseButtonsEnum button) { return false; }
开发者ID:fluxit,项目名称:SpaceEngineers,代码行数:1,代码来源:MyNullInput.cs


示例7: IsNewMouseReleased

        public bool IsNewMouseReleased(MyMouseButtonsEnum button)
        {
#if UNSHARPER
            Debug.Assert(false, "Mouse Support Not Implemented!");
#endif
            return false;
        }
开发者ID:ales-vilchytski,项目名称:SpaceEngineers,代码行数:7,代码来源:MyXInputInput.cs


示例8: AppendName

 public static void AppendName(ref StringBuilder output, MyMouseButtonsEnum mouseButton)
 {
     EnsureExists(ref output);
     output.Append(MyInput.Static.GetName(mouseButton));
 }
开发者ID:fluxit,项目名称:SpaceEngineers,代码行数:5,代码来源:MyControl.cs


示例9: SetNoControl

 public void SetNoControl()
 {
     m_joystickAxis = MyJoystickAxesEnum.None;
     m_joystickButton = MyJoystickButtonsEnum.None;
     m_mouseButton = MyMouseButtonsEnum.None;
     m_keyboardKey = Keys.None;
     m_keyboardKey2 = Keys.None;
 }
开发者ID:Bunni,项目名称:Miner-Wars-2081,代码行数:8,代码来源:MyControl.cs


示例10: MyControl

 public MyControl(MyEditorControlEnums control, MyTextsWrapperEnum text, MyGuiControlTypeEnum controlType)
 {
     m_editorControl = control;
     m_gameControlType = MyGuiGameControlType.EDITOR;
     m_text = text;
     m_controlType = controlType;
     m_joystickButton = MyJoystickButtonsEnum.None;
     m_joystickAxis = MyJoystickAxesEnum.None;
     m_mouseButton = MyMouseButtonsEnum.None;
     m_keyboardKey = Keys.None;
 }
开发者ID:Bunni,项目名称:Miner-Wars-2081,代码行数:11,代码来源:MyControl.cs


示例11: switch

 string IMyControlNameLookup.GetName(MyMouseButtonsEnum button)
 {
     switch (button)
     {
         case MyMouseButtonsEnum.Left: return MyTexts.GetString(MyCommonTexts.LeftMouseButton);
         case MyMouseButtonsEnum.Middle: return MyTexts.GetString(MyCommonTexts.MiddleMouseButton);
         case MyMouseButtonsEnum.Right: return MyTexts.GetString(MyCommonTexts.RightMouseButton);
         case MyMouseButtonsEnum.XButton1: return MyTexts.GetString(MyCommonTexts.MouseXButton1);
         case MyMouseButtonsEnum.XButton2: return MyTexts.GetString(MyCommonTexts.MouseXButton2);
     }
     return MyTexts.GetString(MySpaceTexts.Blank);
 }
开发者ID:2asoft,项目名称:SpaceEngineers,代码行数:12,代码来源:MyKeysToString.cs


示例12: GetControl

 //  Return true if mouse button is used by some user control
 public MyControl GetControl(MyMouseButtonsEnum button)
 {
     foreach (var item in m_gameControlsList.Values)
     {
         if (item.GetMouseControl() == button) return item;
     }
     return null;
 }
开发者ID:ales-vilchytski,项目名称:SpaceEngineers,代码行数:9,代码来源:MyXInputInput.cs


示例13: GetName

 public string GetName(MyMouseButtonsEnum mouseButton)
 {
     return m_nameLookup.GetName(mouseButton);
 }
开发者ID:ales-vilchytski,项目名称:SpaceEngineers,代码行数:4,代码来源:MyXInputInput.cs


示例14: SetControl

 public void SetControl(MyMouseButtonsEnum mouseButton)
 {
     m_mouseButton = mouseButton;
 }
开发者ID:fluxit,项目名称:SpaceEngineers,代码行数:4,代码来源:MyControl.cs


示例15: SetNoControl

 public void SetNoControl()
 {
     m_mouseButton = MyMouseButtonsEnum.None;
     m_keyboardKey = MyKeys.None;
     m_KeyboardKey2 = MyKeys.None;
 }
开发者ID:fluxit,项目名称:SpaceEngineers,代码行数:6,代码来源:MyControl.cs


示例16: WasMouseReleased

 public bool WasMouseReleased(MyMouseButtonsEnum button)
 {
     switch (button)
     {
         case MyMouseButtonsEnum.Left: return WasLeftMouseReleased();
         case MyMouseButtonsEnum.Middle: return WasMiddleMouseReleased();
         case MyMouseButtonsEnum.Right: return WasRightMouseReleased();
         case MyMouseButtonsEnum.XButton1: return WasXButton1MouseReleased();
         case MyMouseButtonsEnum.XButton2: return WasXButton2MouseReleased();
         default:
             return false;
     }
 }
开发者ID:stanhebben,项目名称:SpaceEngineers,代码行数:13,代码来源:MyDirectXInput.cs


示例17: IsNewMouseReleased

 public bool IsNewMouseReleased(MyMouseButtonsEnum button)
 {
     switch (button)
     {
         case MyMouseButtonsEnum.Left: return IsNewLeftMouseReleased();
         case MyMouseButtonsEnum.Middle: return IsNewMiddleMouseReleased();
         case MyMouseButtonsEnum.Right: return IsNewRightMouseReleased();
         case MyMouseButtonsEnum.XButton1: return IsNewXButton1MouseReleased();
         case MyMouseButtonsEnum.XButton2: return IsNewXButton2MouseReleased();
         default:
             return false;
     }
 }
开发者ID:stanhebben,项目名称:SpaceEngineers,代码行数:13,代码来源:MyDirectXInput.cs


示例18: GetControl

 //  Return true if mouse button is used by some user control
 ModAPI.IMyControl ModAPI.IMyInput.GetControl(MyMouseButtonsEnum button) { return GetControl(button); }
开发者ID:2asoft,项目名称:SpaceEngineers,代码行数:2,代码来源:MyDirectXInput_ModAPI.cs


示例19: AddDefaultGameControl

 protected static void AddDefaultGameControl(
     Dictionary<MyStringId, MyControl> self,
     MyGuiControlTypeEnum controlTypeEnum,
     MyStringId controlId,
     MyMouseButtonsEnum? mouse = null,
     MyKeys? key = null,
     MyKeys? key2 = null)
 {
     var helper = MyGuiGameControlsHelpers.GetGameControlHelper(controlId);
     self[controlId] = new MyControl(controlId, helper.NameEnum, controlTypeEnum, mouse, key, defaultControlKey2: key2, description: helper.DescriptionEnum);
 }
开发者ID:leandro1129,项目名称:SpaceEngineers,代码行数:11,代码来源:MySandboxGame.cs


示例20: IsMouseReleased

 bool ModAPI.IMyInput.IsMouseReleased(MyMouseButtonsEnum button) { return IsMouseReleased(button); }
开发者ID:2asoft,项目名称:SpaceEngineers,代码行数:1,代码来源:MyDirectXInput_ModAPI.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# MyMultiplayerBase类代码示例发布时间:2022-05-24
下一篇:
C# MyModel类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap