DPB2Class · Game state and actions

LokiPoe.Input

Class to interact with the game using keyboard.

Namespace: DreamPoeBot.Loki.Game

public class LokiPoe.Input
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

1 declared here
Show all members

GetKeyForAction

MethodLink ↗
public static bool LokiPoe.Input.GetKeyForAction(string action, out Keys key)

Retrieve the currently configured key for a specifig game action. the string passed must be in the same exact form as show in the game options. Ex: "Atlas Screen", "Pantheon Panel", "Attack in place". PLEASE NOTE: even if this is supposed to work even with customized key setup, I strongly sugest you to keep the DEFAULT key setup to ensure the bot work.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

action
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The option you want to retrieve the key for.

key
Parameter type: KeysNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The key configured for this option.

Returns: True on success.

No dedicated example has been reviewed for this member. Browse the class reference; its examples may demonstrate other operations.

DPB2 0.4.5.103 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.