Interface IKeyState
Wrapper around the game keystate buffer, which contains the pressed state for all keyboard keys, indexed by virtual vkCode.
Assembly: Dalamud.dll
View Source
Declaration
public interface IKeyState
Properties
this[int]
Get or set the key-pressed state for a given vkCode.
View Source
Declaration
bool this[int vkCode] { get; set; }
this[VirtualKey]
Get or set the key-pressed state for a given vkCode.
View Source
Declaration
bool this[VirtualKey vkCode] { get; set; }
Methods
GetRawValue(int)
Gets the value in the index array.
View Source
Declaration
int GetRawValue(int vkCode)
Returns
System.Int32
: The raw value stored in the index array.
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | vkCode | The virtual key to change. |
Exceptions
System.ArgumentException
If the vkCode is not valid. Refer to Dalamud.Plugin.Services.IKeyState.IsVirtualKeyValid(int) or Dalamud.Plugin.Services.IKeyState.GetValidVirtualKeys().
GetRawValue(VirtualKey)
Gets the value in the index array.