本文整理汇总了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;
}
示例2: return
bool ModAPI.IMyInput.IsMousePressed(MyMouseButtonsEnum button) { return ((IMyInput)this).IsMousePressed(button); }
示例3: IsNewMousePressed
bool ModAPI.IMyInput.IsNewMousePressed(MyMouseButtonsEnum button) { return IsNewMousePressed(button); }
示例4: GetName
string ModAPI.IMyInput.GetName(MyMouseButtonsEnum mouseButton) { return GetName(mouseButton); }
示例5: IsMouseButtonValid
// Return true if mouse button is valid for user controls
bool ModAPI.IMyInput.IsMouseButtonValid(MyMouseButtonsEnum button) { return IsMouseButtonValid(button); }
示例6:
bool IMyInput.IsMouseReleased(MyMouseButtonsEnum button) { return false; }
示例7: IsNewMouseReleased
public bool IsNewMouseReleased(MyMouseButtonsEnum button)
{
#if UNSHARPER
Debug.Assert(false, "Mouse Support Not Implemented!");
#endif
return false;
}
示例8: AppendName
public static void AppendName(ref StringBuilder output, MyMouseButtonsEnum mouseButton)
{
EnsureExists(ref output);
output.Append(MyInput.Static.GetName(mouseButton));
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例13: GetName
public string GetName(MyMouseButtonsEnum mouseButton)
{
return m_nameLookup.GetName(mouseButton);
}
示例14: SetControl
public void SetControl(MyMouseButtonsEnum mouseButton)
{
m_mouseButton = mouseButton;
}
示例15: SetNoControl
public void SetNoControl()
{
m_mouseButton = MyMouseButtonsEnum.None;
m_keyboardKey = MyKeys.None;
m_KeyboardKey2 = MyKeys.None;
}