[Update] Config Page: VR Tab. Add button that send sample texts to Overlay. per 1 sec for now.
This commit is contained in:
13
src-ui/logics/configs/vr/useSendTextToOverlay.js
Normal file
13
src-ui/logics/configs/vr/useSendTextToOverlay.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { useStdoutToPython } from "@logics/useStdoutToPython";
|
||||
|
||||
export const useSendTextToOverlay = () => {
|
||||
const { asyncStdoutToPython } = useStdoutToPython();
|
||||
|
||||
const sendTextToOverlay = (text) => {
|
||||
asyncStdoutToPython("/run/send_text_overlay_small_log", text);
|
||||
};
|
||||
|
||||
return {
|
||||
sendTextToOverlay,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user