TurboWarp / scratch-vm

Scratch VM with a JIT compiler and more features
https://turbowarp.org/
Mozilla Public License 2.0
75 stars 72 forks source link

about util.ioQuery #153

Closed qxsck closed 1 year ago

qxsck commented 1 year ago

What is the 'util.ioQuery' of the 'getKeyPressed' function in 'scratch3_sensing.js'?

GarboMuffin commented 1 year ago

you can't run a block using an ioQuery. just copy and paste the code of getKeyPressed, it's not long

https://github.com/TurboWarp/scratch-vm/blob/develop/src/blocks/scratch3_sensing.js#L260

GarboMuffin commented 1 year ago

Oh, misunderstood I think. ioQuery is just a slightly less ugly way to run functions from runtime.ioDevices

LilyMakesThings commented 1 year ago

...even though, at least in my opinion, it is uglier