aboutsummaryrefslogtreecommitdiff
path: root/backends/events
diff options
context:
space:
mode:
authorColin Snover2017-09-03 16:31:16 -0500
committerColin Snover2017-10-15 13:24:20 -0500
commitb53020f70457c059f5028073df493cfc25a5876a (patch)
treebe4e932b23201209c606c0b559774933d52b651f /backends/events
parent7fc86195343adf962054fd52605c3a3cc8b501e9 (diff)
downloadscummvm-rg350-b53020f70457c059f5028073df493cfc25a5876a.tar.gz
scummvm-rg350-b53020f70457c059f5028073df493cfc25a5876a.tar.bz2
scummvm-rg350-b53020f70457c059f5028073df493cfc25a5876a.zip
BACKENDS: Fix some comment typos
Diffstat (limited to 'backends/events')
-rw-r--r--backends/events/sdl/sdl-events.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp
index fb5a4c9b09..2c6fe85232 100644
--- a/backends/events/sdl/sdl-events.cpp
+++ b/backends/events/sdl/sdl-events.cpp
@@ -158,7 +158,7 @@ int SdlEventSource::mapKey(SDLKey sdlKey, SDLMod mod, Uint16 unicode) {
} else if (key >= Common::KEYCODE_UP && key <= Common::KEYCODE_PAGEDOWN) {
return key;
} else if (unicode) {
- // Return unicode in case it's stil set and wasn't filtered.
+ // Return unicode in case it's still set and wasn't filtered.
return unicode;
} else if (key >= 'a' && key <= 'z' && (mod & KMOD_SHIFT)) {
return key & ~0x20;
@@ -968,9 +968,8 @@ bool SdlEventSource::remapKey(SDL_Event &ev, Common::Event &event) {
event.kbd.keycode = Common::KEYCODE_F5;
event.kbd.ascii = mapKey(SDLK_F5, ev.key.keysym.mod, 0);
}
- // Nap center (space) to tab (default action )
+ // Map center (space) to tab (default action)
// I wanted to map the calendar button but the calendar comes up
- //
else if (ev.key.keysym.sym == SDLK_SPACE) {
event.type = Common::EVENT_KEYDOWN;
event.kbd.keycode = Common::KEYCODE_TAB;