Created
February 21, 2021 00:33
-
-
Save yearofthewhopper/092eb37e5a7787ba2a83fa45c381e3fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Scene = require('Scene'); | |
const Patches = require('Patches'); | |
const Reactive = require('Reactive'); | |
export const Diagnostics = require('Diagnostics'); | |
(async function () { | |
const onCameraRecord = await Patches.outputs.getBoolean('cameraRec'); | |
// const onScreenTap = await Patches.outputs.getPulse('onScreenTap'); | |
onCameraRecord.subscribe(() => { | |
Diagnostics.log('cameraRecord!'); | |
Patches.inputs.setPulse('pulseFromCameraRecord', Reactive.once()) | |
}) | |
// onScreenTap.subscribe(() => { | |
// Diagnostics.log('screenTapped!') | |
// Patches.inputs.setPulse('pulseFromScreenTap', Reactive.once()) | |
// }) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment