Open ai47patos opened 9 months ago
When you press simultaneously two different input keys, one of them gets stuck as pressed inputSystem.isPressed true
CLI Version: 3.18.0 Node Version: 18.16.0 "@dcl/js-runtime": "7.3.29" "@dcl/sdk": "^7.3.18"
import { engine, inputSystem } from "@dcl/sdk/ecs"; function controllerSystem(){ console.log(inputSystem.isPressed(InputAction.IA_PRIMARY) || inputSystem.isPressed(InputAction.IA_SECONDARY)) } engine.addSystem(controllerSystem)
inputSystem.isPressed should return false
inputSystem.isPressed is stuck returning true, event if you have no inputs pressed
You have to time correctly pressing the inputs, isn't too difficult, I manage to get the bug in 1-3 attempts
function controllerSystem(){ console.log(inputSystem.isPressed(InputAction.IA_PRIMARY) || inputSystem.isPressed(InputAction.IA_SECONDARY)) } engine.addSystem(controllerSystem)
Caused by #1120 ?
Issue Description:
When you press simultaneously two different input keys, one of them gets stuck as pressed inputSystem.isPressed true
SDK:
Tool:
CLI Version: 3.18.0 Node Version: 18.16.0 "@dcl/js-runtime": "7.3.29" "@dcl/sdk": "^7.3.18"
Steps to reproduce:
Expected behaviour:
inputSystem.isPressed should return false
Current behaviour:
inputSystem.isPressed is stuck returning true, event if you have no inputs pressed
Reproduction rate:
You have to time correctly pressing the inputs, isn't too difficult, I manage to get the bug in 1-3 attempts
Code Snippets:
Platforms:
Browser:
Environment:
Evidence:
Additional Notes: