Skip to main content
Version: 0.2.1

Interface IWukongInputApi

Namespace: WukongMp.Sdk.Api
Assembly: WukongMp.Sdk.dll

Provides methods related to input, such as registering key binds.

public interface IWukongInputApi

Methods​

CanApplyInput()​

Determines whether keyboard input can currently be applied (i.e., not blocked by active text fields or menus).

bool CanApplyInput()

Returns​

bool

true if keyboard input is not blocked by active text fields and menus; otherwise, false.

RegisterGamePadBind(GamePadButton, Action)​

Registers a gamepad button bind with the specified button and action.

void RegisterGamePadBind(GamePadButton button, Action action)

Parameters​

button GamePadButton

The gamepad button to bind.

action Action

The action to execute when the button is pressed.

RegisterKeyBind(Key, Action)​

Registers a key bind with the specified key and action.

void RegisterKeyBind(Key key, Action action)

Parameters​

key Key

The key to bind.

action Action

The action to execute when the key is pressed.

RegisterKeyBind(ModifierKeys, Key, Action)​

Registers a key bind with the specified modifier keys, key, and action.

void RegisterKeyBind(ModifierKeys modifiers, Key key, Action action)

Parameters​

modifiers ModifierKeys

The modifier keys (e.g., Ctrl, Alt, Shift).

key Key

The key to bind.

action Action

The action to execute when the key combination is pressed.

  • Methods
    • CanApplyInput()
    • RegisterGamePadBind(GamePadButton, Action)
    • RegisterKeyBind(Key, Action)
    • RegisterKeyBind(ModifierKeys, Key, Action)