[Scummvm-git-logs] scummvm master -> d8cb826b1951e08d04fb3a790daf0e4a62db114c

criezy criezy at scummvm.org
Sun Jul 7 12:08:54 CEST 2019


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:
d8cb826b19 IOS7: Add back mapping of LF character to the Return key


Commit: d8cb826b1951e08d04fb3a790daf0e4a62db114c
    https://github.com/scummvm/scummvm/commit/d8cb826b1951e08d04fb3a790daf0e4a62db114c
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2019-07-07T11:06:28+01:00

Commit Message:
IOS7: Add back mapping of LF character to the Return key

This is necessary for properly identifying the Return key pressed from
the software or a hardware keyboard, and this was erronously removed
in commit e5709ed.

Changed paths:
    backends/platform/ios7/ios7_osys_events.cpp


diff --git a/backends/platform/ios7/ios7_osys_events.cpp b/backends/platform/ios7/ios7_osys_events.cpp
index a7e007e..0387503 100644
--- a/backends/platform/ios7/ios7_osys_events.cpp
+++ b/backends/platform/ios7/ios7_osys_events.cpp
@@ -389,6 +389,12 @@ void  OSystem_iOS7::handleEvent_keyPressed(Common::Event &event, int keyPressed)
 	int ascii = keyPressed;
 	//printf("key: %i\n", keyPressed);
 
+	// Map LF character to Return key/CR character
+	if (keyPressed == 10) {
+		keyPressed = Common::KEYCODE_RETURN;
+		ascii = Common::ASCII_RETURN;
+	}
+
 	event.type = Common::EVENT_KEYDOWN;
 	_queuedInputEvent.type = Common::EVENT_KEYUP;
 





More information about the Scummvm-git-logs mailing list