Add VirtualKey enum, move to separate namespace

This commit is contained in:
Raymond 2021-08-10 08:55:48 -04:00
parent b09cda329b
commit 174ae7b2df
2 changed files with 1052 additions and 1 deletions

View file

@ -3,7 +3,7 @@ using System.Runtime.InteropServices;
using Serilog;
namespace Dalamud.Game.ClientState
namespace Dalamud.Game.ClientState.Keys
{
/// <summary>
/// Wrapper around the game keystate buffer, which contains the pressed state for all keyboard keys, indexed by virtual vkCode.
@ -52,6 +52,13 @@ namespace Dalamud.Game.ClientState
}
}
/// <summary>
/// Get or set the keypressed state for a given VirtualKey enum.
/// </summary>
/// <param name="vk">The virtual key to change.</param>
/// <returns>Whether the specified key is currently pressed.</returns>
public bool this[VirtualKey vk] => this[(int)vk];
/// <summary>
/// Clears the pressed state for all keys.
/// </summary>

File diff suppressed because it is too large Load diff