Removed the buffering of mouse and keyboard events. I don't think any of

our other engines do this, so there is little reason for BS2 to. I did add
a filtering mechanism so that mouse button releases and scroll wheeling is
ignored during normal gameplay, but I don't know if that was necessary
either.

Since this left little more than an empty husk where the Input class used
to be, I've eliminated that class and buried its remains in Sword2Engine.

svn-id: r13812
This commit is contained in:
Torbjörn Andersson 2004-05-09 13:32:04 +00:00
parent 577600537c
commit fc970b3c75
14 changed files with 222 additions and 246 deletions

View file

@ -662,9 +662,9 @@ int32 Logic::fnPlayCredits(int32 *params) {
_vm->_graphics->updateDisplay();
KeyboardEvent ke;
KeyboardEvent *ke = _vm->keyboardEvent();
if (_vm->_input->readKey(&ke) == RD_OK && ke.keycode == 27) {
if (ke && ke->keycode == 27) {
if (!abortCredits) {
abortCredits = true;
_vm->_graphics->fadeDown();