win32tty: dynamic keystroke handler with 3.4.0 behaviour

This commit is contained in:
nethack.allison
2003-03-09 18:36:24 +00:00
parent 8de1ed25c0
commit 56585d286f
3 changed files with 260 additions and 4 deletions

View File

@@ -572,7 +572,7 @@ $(NHRES): $(NTSYS)\console.rc $(NTSYS)\NetHack.ico
# DO NOT INDENT THE << below!
#
$(GAMEFILE) : $(ALLOBJ) $(NHRES) $(GAMEDIR)\nhdefkey.dll
$(GAMEFILE) : $(ALLOBJ) $(NHRES) $(GAMEDIR)\nhdefkey.dll $(GAMEDIR)\nh340key.dll
@if not exist $(GAMEDIR)\*.* mkdir $(GAMEDIR)
@echo Linking....
$(link) $(LFLAGS) user32.lib winmm.lib -out:$@ @<<$(GAME).lnk
@@ -597,6 +597,21 @@ $(GAMEDIR)\nhdefkey.dll : $(O)$(@B).o $(O)$(@B).def
/PDB:"$(@B).PDB" /MAP:"$(@B).map" /DEF:$(O)$(@B).def \
-out:$@ $(O)$(@B).o
$(O)nh340key.def:
@echo EXPORTS >$@
@echo ProcessKeystroke >>$@
@echo NHkbhit >>$@
@echo SourceWhere >>$@
@echo SourceAuthor >>$@
@echo KeyHandlerName >>$@
$(GAMEDIR)\nh340key.dll : $(O)$(@B).o $(O)$(@B).def
@if not exist $(GAMEDIR)\*.* mkdir $(GAMEDIR)
@echo Linking $@
$(link) -debug:full -debugtype:cv /RELEASE /NOLOGO /DLL user32.lib \
/PDB:"$(@B).PDB" /MAP:"$(@B).map" /DEF:$(O)$(@B).def \
-out:$@ $(O)$(@B).o
#
# Secondary Targets.
#