Open increpare opened 9 years ago
on firefox on my laptop, - has the keycode of 173 - but I think you're checking for 49
I don't know if hyphen has a different keycode for the numpad
OH WAIT MINUS IS ONLY 173 ON MAC WITH FIREFOX ON SOME BROWSERS. WELL THAT'S SURE NICE.
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
apparently keycode isn't recommended anymore to check against. There's a "code" member, which returns useful things (like "KeyA"), but would return = instead of +, and a "charCode", but that doesn't seem to work for symbols.
More research needed.
a quick hack would be to link minus to keycode 173 as well. Can we do that?
new openfl might deal with this (probably doesn't).
check out pico-8 handles this