mms@gpu.utcs.toronto.edu (John J. Chew III) (01/28/88)
In response to questions by Evan Bauman, Ken Hancock and others... MacLanding (a Defender-like shareware game for the Mac) uses calls to GetKeyMap() to read key codes "directly" so that you can (for example) fire, move and bomb simultaneously. The key to detonate a smart bomb has key code 03, which is the enter key on an old Mac keyboard and nothing on any keyboard since the Mac+. Soooo... to patch this, run the game with a debugger trapping for calls to GetKeyMap(), trace manually from there and look for things that look like entries in a key map being masked and tested. Well, actually, you don't have to. I did it this afternoon. Using FEdit, search for the hex string 0010 6758. There should only be one. The 0010 is used to mask the Enter key's entry in the key map. Changing it to 0008 will make Backspace (Delete) the smart bomb key, which seems more appropriate anyway. Hope this is of help. john chew -- john j. chew (v3.0) poslfit@gpu.utcs.toronto.edu +1 416 463 5403 (300/1200 bps) poslfit@utorgpu.bitnet {cbosgd,decvax,mnetor,utai,utcsri,{allegra,linus}!utzoo}!utgpu!poslfit "There are brains in the woods and the anarchist has bombed the bridge."