mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
19 lines
529 B
C#
19 lines
529 B
C#
using Dalamud.Utility;
|
|
|
|
namespace Dalamud.Game.ClientState.Keys;
|
|
|
|
/// <summary>
|
|
/// Extension methods for <see cref="VirtualKey"/>.
|
|
/// </summary>
|
|
public static class VirtualKeyExtensions
|
|
{
|
|
/// <summary>
|
|
/// Get the fancy name associated with this key.
|
|
/// </summary>
|
|
/// <param name="key">The they key to act on.</param>
|
|
/// <returns>The key's fancy name.</returns>
|
|
public static string GetFancyName(this VirtualKey key)
|
|
{
|
|
return key.GetAttribute<VirtualKeyAttribute>().FancyName;
|
|
}
|
|
}
|