promotional bannermobile promotional banner
premium banner
Provided key API on both server and client.

Description

It implements key record, and support both key and mouse(mouse record can be closed in the config),

also it is used in my other mods.

Features:

This mod hook the InputEvent of client, record it on client and update to the server.

Using it, developers can visit the operations from client.

One of the user is SheepScriptLib, my another mod. Using it to post greater key event to the script.

Only works when there's no gui showing, will not work on chatting, backpack.

API:

saltsheep.keylib.key.PlayerKeyHandler

    Storing the player's key data in server.

saltsheep.keylib.key.PlayerKeyClientHandler

    Storing the player's key data in client.

saltsheep.keylib.key.PlayerKeyDownEvent, saltsheep.keylib.key.PlayerKeyUpEvent

    The event posted in server(forge bus).