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:
parent
197e68ef2a
commit
2ed53f98b4
1 changed files with 7 additions and 3 deletions
|
@ -163,9 +163,13 @@ bool DefaultEventManager::pollEvent(Common::Event &event) {
|
|||
}
|
||||
#endif
|
||||
else if (event.kbd.keycode == Common::KEYCODE_BACKSPACE) {
|
||||
// WORKAROUND: On Mac OS X, the ascii value for backspace
|
||||
// has to be set to the backspace keycode in order to work
|
||||
// properly.
|
||||
// WORKAROUND: Some engines incorrectly attempt to use the
|
||||
// ascii value instead of the keycode to detect the backspace
|
||||
// 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;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue