Skip to content
Snippets Groups Projects
Commit e0b28236 authored by Greg Fodor's avatar Greg Fodor
Browse files

Fix for new input API

parent 78607d6a
No related branches found
No related tags found
No related merge requests found
......@@ -24,8 +24,8 @@ AFRAME.registerComponent("freeze-controller", {
tick: function() {
const userinput = AFRAME.scenes[0].systems.userinput;
const ensureFrozen = userinput.readFrameValueAtPath(paths.actions.ensureFrozen);
const thaw = userinput.readFrameValueAtPath(paths.actions.thaw);
const ensureFrozen = userinput.frame[paths.actions.ensureFrozen];
const thaw = userinput.frame[paths.actions.thaw];
const toggleFreezeDueToInput = (this.el.is("frozen") && thaw) || (!this.el.is("frozen") && ensureFrozen);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment