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


C# MyMouseButtonsEnum类代码示例

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


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


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