Keyboard signal decoding on OC 1.8.0+
In more recent versions of OpenComputers the encoding of Character
has changed since the version 1.8.0 (which introduced Lua 5.4 support): https://github.com/MightyPirates/OpenComputers/blame/050a0ae7f788d1f336c513db31af007ed57922c0/src/main/scala/li/cil/oc/server/machine/Machine.scala#L315, it is now passed as integers, not doubles. Some other types were also changed.
As such the decoding as double at https://gitlab.com/Hawk777/oc-wasm-opencomputers/-/blob/main/src/keyboard.rs?ref_type=heads#L104 fails. The code should be become a bit more smart with this to try & support both cases
Edited by Nickie S.