-
Notifications
You must be signed in to change notification settings - Fork 486
Open
Milestone
Description
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
| constexpr static KeySDLKeyPair sKeyPairs[] = { | |
| KeySDLKeyPair(Ion::Keyboard::Key::Down, SDL_SCANCODE_DOWN), | |
| KeySDLKeyPair(Ion::Keyboard::Key::Up, SDL_SCANCODE_UP), | |
| KeySDLKeyPair(Ion::Keyboard::Key::Left, SDL_SCANCODE_LEFT), | |
| KeySDLKeyPair(Ion::Keyboard::Key::Right, SDL_SCANCODE_RIGHT), | |
| KeySDLKeyPair(Ion::Keyboard::Key::Shift, SDL_SCANCODE_LSHIFT), | |
| KeySDLKeyPair(Ion::Keyboard::Key::Shift, SDL_SCANCODE_RSHIFT), | |
| KeySDLKeyPair(Ion::Keyboard::Key::EXE, SDL_SCANCODE_RETURN), | |
| KeySDLKeyPair(Ion::Keyboard::Key::Back, SDL_SCANCODE_ESCAPE), | |
| KeySDLKeyPair(Ion::Keyboard::Key::Toolbox, SDL_SCANCODE_TAB), | |
| KeySDLKeyPair(Ion::Keyboard::Key::Backspace, SDL_SCANCODE_BACKSPACE) | |
| }; |
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
Metadata
Metadata
Assignees
Labels
No labels