Show / Hide Table of Contents

Class KeyState

Wrapper around the game keystate buffer, which contains the pressed state for all keyboard keys, indexed by virtual vkCode.

Inheritance
System.Object
KeyState
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dalamud.Game.ClientState.Keys
Assembly: Dalamud.dll
Syntax
public class KeyState

Constructors

| Improve this Doc View Source

KeyState(ClientStateAddressResolver)

Initializes a new instance of the KeyState class.

Declaration
public KeyState(ClientStateAddressResolver addressResolver)
Parameters
Type Name Description
Dalamud.Game.ClientState.ClientStateAddressResolver addressResolver

The ClientStateAddressResolver instance.

Properties

| Improve this Doc View Source

Item[VirtualKey]

Get or set the keypressed state for a given VirtualKey enum.

Declaration
public bool this[VirtualKey vk] { get; }
Parameters
Type Name Description
VirtualKey vk

The virtual key to change.

Property Value
Type Description
System.Boolean

Whether the specified key is currently pressed.

| Improve this Doc View Source

Item[Int32]

Get or set the keypressed state for a given vkCode.

Declaration
public bool this[int vkCode] { get; set; }
Parameters
Type Name Description
System.Int32 vkCode

The virtual key to change.

Property Value
Type Description
System.Boolean

Whether the specified key is currently pressed.

Methods

| Improve this Doc View Source

ClearAll()

Clears the pressed state for all keys.

Declaration
public void ClearAll()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX