You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
). This can be seen on workshop, when using keydown(). I think the keyboard part of Ion simulator should be refractored for using a buffer, like for the emscripten visual keys. This should also change getPlatformEvent() for only having simulator events.
If you think this is too difficult, why not just adding few physical keys, and adding in workshop the visual keyboard.
Environment
Epsilon master
The platform(s) on which the problem happens: simulator
The text was updated successfully, but these errors were encountered:
The simulator supports more keys when not using ion.keydown in Python: Tab (toolbox), Backspace, Enter (EXE), Shift, Alt+x (exp), Alt+v (var), Alt+e (EE), Alt+r (sqrt), Alt+p (pi), Alt+Shift+2 (**2), and the arrow keys. In Python using ion.keydown it only seems to support Tab, Enter, Shift, and the arrow keys.
I would prefer if all physical keys worked in all situations in the simulator. It would be better if there was a mapping so that all keys on the screen keyboard in the simulator could be pressed using physical keyboard keys that were easy to remember. E.g. Alt+s (sin), Alt+Shift+c (acos), Alt+n (x,n,t), Alt+a (Ans), etc.
An added advantage for teachers would be if the screen keyboard key was pressed when you press it on the physical keyboard. There would be a slight problem if you want to press '+' on a US keyboard, since you need to press Shift+=, but that would lead to that Shift key was pressed and status shift was lit, but that could be turned off as soon as '=' key was pressed, and then only the '+' key would be pressed on the screen keyboard.
Describe the bug
On simulator, the
Ion::Keyboard::Scan()
can only scan a few physical keys (epsilon/ion/src/simulator/shared/keyboard_sdl.cpp
Lines 38 to 49 in 055f8bf
keydown()
. I think the keyboard part of Ion simulator should be refractored for using a buffer, like for the emscripten visual keys. This should also changegetPlatformEvent()
for only having simulator events.If you think this is too difficult, why not just adding few physical keys, and adding in workshop the visual keyboard.
Environment
The text was updated successfully, but these errors were encountered: