forked from phenom/healer-man
Release Healer Man 0.1.29
This commit is contained in:
1 parent
8c9809d3e0
commit
544c1bee91
120 files changed
+4363
-1036
No files matched your search
@@ -0,0 +1,8 @@
|
||||
import { useSyncExternalStore } from "react";
|
||||
import { getInputPreferences, subscribeInputPreferences } from "./keybindRuntime";
|
||||
import { inputBindingLabel, type InputDevice } from "./keybinds";
|
||||
|
||||
export function useInputBindingLabels() {
|
||||
const preferences = useSyncExternalStore(subscribeInputPreferences, getInputPreferences, getInputPreferences);
|
||||
return (device: InputDevice, id: string) => inputBindingLabel(device, preferences[device][id]);
|
||||
}
|
||||
Reference in new issue
Block a user