Ticket #5858: debug.patch

File debug.patch, 622 bytes (added by digitall, 13 years ago)

Debugging Patch

  • engines/agi/keyboard.cpp

    diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp
    index a7f15c1..9b2b8ca 100644
    a b int AgiEngine::handleController(int key) {  
    115115        debugC(3, kDebugLevelInput, "key = %04x", key);
    116116
    117117        for (i = 0; i < MAX_CONTROLLERS; i++) {
     118                debugC(3, kDebugLevelInput, "_game.controllers[%d].keycode: %04x", i, _game.controllers[i].keycode);
    118119                if (_game.controllers[i].keycode == key) {
    119120                        debugC(3, kDebugLevelInput, "event %d: key press", _game.controllers[i].controller);
    120121                        _game.controllerOccured[_game.controllers[i].controller] = true;