Skip to content

shortcutsOf beta ​

Function of @v12-engine/client

ts
export declare function shortcutsOf<C>(actions: Pick<Actions<C>, 'list' | 'bindings'>, 
options?: {
    applies?: (def: ActionDef<C>) => boolean;
}): ShortcutGroup[];

Everything the keys and the mouse do in a game, for the list the player can open: made from the actions (client.keys), each with the keys it is on now, so that the list cannot say something else than the keys do. Read in a component, it follows the keys as the player changes them. What no key does (the wheel, the edges of the screen) is said after the actions of its heading. A heading with nothing under it is left out