//********************************** Banshee Engine (www.banshee3d.com) **************************************************// //**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************// using System.Runtime.InteropServices; namespace BansheeEngine { /** @addtogroup GUI_Engine * @{ */ /// /// A key combination that is used for triggering keyboard shortcuts. Contains a button code and an optional modifier. /// [StructLayout(LayoutKind.Sequential)] public struct ShortcutKey // Note: Must match C++ class ShortcutKey { /// /// Optional modifier that is required to be pressed along with the shortcut button /// public ButtonModifier modifier; /// /// Shortcut button that triggers the shortcut. /// public ButtonCode key; /// /// Creates a new shortcut key. /// /// Optional modifier that is required to be pressed along with the shortcut button. /// Shortcut button that triggers the shortcut. public ShortcutKey(ButtonModifier modifier, ButtonCode key) { this.modifier = modifier; this.key = key; } /// /// Blank shortcut key that is triggered by no key combination. /// public static ShortcutKey None = new ShortcutKey(ButtonModifier.None, ButtonCode.Unassigned); } /** @} */ }