mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
51 lines
1.1 KiB
C#
51 lines
1.1 KiB
C#
//
|
|
// KeyModifiers.cs
|
|
//
|
|
// Copyright (C) 2019 OpenTK
|
|
//
|
|
// This software may be modified and distributed under the terms
|
|
// of the MIT license. See the LICENSE file for details.
|
|
//
|
|
|
|
using System;
|
|
|
|
namespace OpenToolkit.GraphicsLibraryFramework
|
|
{
|
|
/// <summary>
|
|
/// Key modifiers, such as Shift or CTRL.
|
|
/// </summary>
|
|
[Flags]
|
|
public enum KeyModifiers : byte
|
|
{
|
|
/// <summary>
|
|
/// if one or more Shift keys were held down.
|
|
/// </summary>
|
|
Shift = 0x0001,
|
|
|
|
/// <summary>
|
|
/// If one or more Control keys were held down.
|
|
/// </summary>
|
|
Control = 0x0002,
|
|
|
|
/// <summary>
|
|
/// If one or more Alt keys were held down.
|
|
/// </summary>
|
|
Alt = 0x0004,
|
|
|
|
/// <summary>
|
|
/// If one or more Super keys were held down.
|
|
/// </summary>
|
|
Super = 0x0008,
|
|
|
|
/// <summary>
|
|
/// If caps lock is enabled.
|
|
/// </summary>
|
|
CapsLock = 0x0010,
|
|
|
|
/// <summary>
|
|
/// If num lock is enabled.
|
|
/// </summary>
|
|
NumLock = 0x0020,
|
|
}
|
|
}
|