]> granicus.if.org Git - nethack/commit
win32tty keystroke handling
authornethack.allison <nethack.allison>
Sun, 9 Mar 2003 15:44:50 +0000 (15:44 +0000)
committernethack.allison <nethack.allison>
Sun, 9 Mar 2003 15:44:50 +0000 (15:44 +0000)
commit78ce3749dcebc0bc552a47c925aeb02d0ead8144
treeeca9964d7712b696e233a5ad19d212c4f02b7eb9
parentdaed1ff394e960febf271df7e1c48b4db1528444
win32tty keystroke handling

- Move the code for keystroke handling into its own source file.
- Compile and link it as a dynamic link library.
- Dynamically load the keystroke handler at runtime
- Add support for specifying a different handler in defaults.nh
  so that internationalization issues can be dealt with without
  rebuilding nethack, just supply alternative handlers in HACKDIR.

The following exported functions need to be present in
the keystroke handler .dll:
ProcessKeystroke - returns an ascii value to NetHack
NHkbhit  - allows peeking to see if a key/mouse press is waiting
SourceWhere - returns location for souce code for a keystroke handler
SourceAuthor  - returns author information for a keystroke handler
KeyHandlerName  - returns the full or short name of the keystroke handling dll.
Files
include/flag.h
include/ntconf.h
src/cmd.c
src/options.c
sys/winnt/Makefile.msc
sys/winnt/nhdefkey.c [new file with mode: 0644]
sys/winnt/nttty.c