Fix for isalpha() assertions

svn-id: r29924
This commit is contained in:
Filippos Karapetis 2007-12-20 17:04:15 +00:00
parent 276c67407b
commit 193760a40f

View File

@ -219,6 +219,11 @@ void AgiEngine::processEvents() {
key = KEY_BACKSPACE; key = KEY_BACKSPACE;
break; break;
default: default:
// FIXME: This fixes assertions with isalpha below, but it essentially filters
// out all function keys (control, alt and shift)
if (key > 255)
break;
// FIXME: We let lots of keys slip through here unchanged, passing our internal // FIXME: We let lots of keys slip through here unchanged, passing our internal
// keycode values directly to the AGI core. Do we really want that??? // keycode values directly to the AGI core. Do we really want that???
if (isalpha(key)) { if (isalpha(key)) {