[Scummvm-git-logs] scummvm master -> a30d637347aaa0fd9404b1ff595cdc1603609245
lotharsm
noreply at scummvm.org
Tue May 17 16:38:56 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a30d637347 BACKENDS: Typo in comments
Commit: a30d637347aaa0fd9404b1ff595cdc1603609245
https://github.com/scummvm/scummvm/commit/a30d637347aaa0fd9404b1ff595cdc1603609245
Author: Hubert Maier (raziel- at users.noreply.github.com)
Date: 2022-05-17T18:38:52+02:00
Commit Message:
BACKENDS: Typo in comments
Changed paths:
backends/events/sdl/sdl-events.cpp
diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp
index b7d0005e259..5d702698ee8 100644
--- a/backends/events/sdl/sdl-events.cpp
+++ b/backends/events/sdl/sdl-events.cpp
@@ -632,8 +632,8 @@ bool SdlEventSource::handleKeyDown(SDL_Event &ev, Common::Event &event) {
SDL_Keymod mod = (SDL_Keymod)ev.key.keysym.mod;
#if defined(__amigaos4__)
- // On AmigaOS SDL always report numlock as off. However we get KEYCODE_KP# only when
- // it is on, and get different keycodes (for example KEYCODE_PAGEDONW) when it is off.
+ // On AmigaOS, SDL always reports numlock as off. However, we get KEYCODE_KP# only when
+ // it is on, and get different keycodes (for example KEYCODE_PAGEDOWN) when it is off.
if (event.kbd.keycode >= Common::KEYCODE_KP0 && event.kbd.keycode <= Common::KEYCODE_KP9) {
event.kbd.flags |= Common::KBD_NUM;
mod = SDL_Keymod(mod | KMOD_NUM);
@@ -665,8 +665,8 @@ bool SdlEventSource::handleKeyUp(SDL_Event &ev, Common::Event &event) {
SDL_Keymod mod = (SDL_Keymod)ev.key.keysym.mod;
#if defined(__amigaos4__)
- // On AmigaOS SDL always report numlock as off. However we get KEYCODE_KP# only when
- // it is on, and get different keycodes (for example KEYCODE_PAGEDONW) when it is off.
+ // On AmigaOS, SDL always reports numlock as off. However, we get KEYCODE_KP# only when
+ // it is on, and get different keycodes (for example KEYCODE_PAGEDOWN) when it is off.
if (event.kbd.keycode >= Common::KEYCODE_KP0 && event.kbd.keycode <= Common::KEYCODE_KP9) {
event.kbd.flags |= Common::KBD_NUM;
mod = SDL_Keymod(mod | KMOD_NUM);
More information about the Scummvm-git-logs
mailing list