Do not assert unknow mouse button, rather show error message

This commit is contained in:
Pali Rohár 2010-10-17 14:29:17 +02:00
parent 7b08dbe318
commit 45fe4f673a

View file

@ -223,8 +223,10 @@ namespace gcn
break;
}
//throw GCN_EXCEPTION("Unknown SDL mouse type.");
assert(!"Unknown SDL mouse type.");
#ifdef DEBUG
fprintf(stderr,"Unknown SDL mouse button.\n");
#endif
return 0;
}