Skip to content

Commit

Permalink
[Ion::Keyboard] Added KP_Enter as scan code
Browse files Browse the repository at this point in the history
  • Loading branch information
RedGl0w authored Oct 17, 2020
1 parent d0a79c2 commit b0a9823
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ion/src/simulator/shared/keyboard_sdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ constexpr static KeySDLKeyPair sKeyPairs[] = {
KeySDLKeyPair(Ion::Keyboard::Key::Zero, SDL_SCANCODE_0),
KeySDLKeyPair(Ion::Keyboard::Key::Dot, SDL_SCANCODE_KP_PERIOD),
KeySDLKeyPair(Ion::Keyboard::Key::Dot, SDL_SCANCODE_PERIOD),
KeySDLKeyPair(Ion::Keyboard::Key::EXE, SDL_SCANCODE_RETURN)
KeySDLKeyPair(Ion::Keyboard::Key::EXE, SDL_SCANCODE_RETURN),
KeySDLKeyPair(Ion::Keyboard::Key::EXE, SDL_SCANCODE_KP_ENTER)
};

constexpr int sNumberOfKeyPairs = sizeof(sKeyPairs)/sizeof(KeySDLKeyPair);
Expand Down

0 comments on commit b0a9823

Please sign in to comment.