mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
Fix for isalpha() assertions
svn-id: r29924
This commit is contained in:
parent
276c67407b
commit
193760a40f
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user