mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
Add VirtualKey enum, move to separate namespace
This commit is contained in:
parent
b09cda329b
commit
174ae7b2df
2 changed files with 1052 additions and 1 deletions
|
|
@ -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>
|
||||
1044
Dalamud/Game/ClientState/Keys/VirtualKey.cs
Normal file
1044
Dalamud/Game/ClientState/Keys/VirtualKey.cs
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue