UNPKG

@overextended/ox_lib

Version:
24 lines (23 loc) 723 B
interface CKeybind extends KeybindProps { currentKey: string; disabled: boolean; isPressed: boolean; hash: number; getCurrentKey(): string; isControlPressed(): boolean; } interface KeybindProps { name: string; description: string; defaultMapper?: string; defaultKey?: string; disabled?: boolean; disable?(this: CKeybind, toggle: boolean): void; onPressed?(this: CKeybind): void; onReleased?(this: CKeybind): void; [key: string]: any; } export declare function addKeybind(data: KeybindProps): CKeybind; export declare function getKeybind(name: string): CKeybind | undefined; export declare function getAllKeybinds(): Readonly<Record<string, CKeybind>>; export {};