Clarified the backspace key workaround: This is not a Mac OS X issue (as the comment used to imply) but rather an issue in some game engines.

svn-id: r43880
This commit is contained in:
Max Horn 2009-09-01 13:02:24 +00:00
parent 197e68ef2a
commit 2ed53f98b4

View file

@ -163,9 +163,13 @@ bool DefaultEventManager::pollEvent(Common::Event &event) {
} }
#endif #endif
else if (event.kbd.keycode == Common::KEYCODE_BACKSPACE) { else if (event.kbd.keycode == Common::KEYCODE_BACKSPACE) {
// WORKAROUND: On Mac OS X, the ascii value for backspace // WORKAROUND: Some engines incorrectly attempt to use the
// has to be set to the backspace keycode in order to work // ascii value instead of the keycode to detect the backspace
// properly. // key (a non-portable behavior). This fails at least on
// Mac OS X, possibly also on other systems.
// As a workaround, we force the ascii value for backspace
// key pressed. A better fix would be for engines to stop
// making invalid assumptions about ascii values.
event.kbd.ascii = Common::KEYCODE_BACKSPACE; event.kbd.ascii = Common::KEYCODE_BACKSPACE;
} }
break; break;