windows console changes - eliminate *key.dll

Incorporate the functionality of the loadable DLL's (nhraykey.dll,
nhdefkey.dll, and nh340key.dll) into the consoletty.c code and
remove the dll building
This commit is contained in:
nhmall
2021-11-16 15:27:33 -05:00
parent 6c8a03aa44
commit 0a97cc5c5e
22 changed files with 1358 additions and 1928 deletions

View File

@@ -157,6 +157,14 @@ enum getloc_filters {
NUM_GFILTER
};
#ifdef WIN32
enum windows_key_handling {
default_keyhandling,
ray_keyhandling,
nh340_keyhandling
};
#endif
struct debug_flags {
boolean test;
#ifdef TTY_GRAPHICS
@@ -364,8 +372,9 @@ struct instance_flags {
int wc2_windowborders; /* display borders on NetHack windows */
int wc2_petattr; /* text attributes for pet */
#ifdef WIN32
#define MAX_ALTKEYHANDLER 25
char altkeyhandler[MAX_ALTKEYHANDLER];
#define MAX_ALTKEYHANDLING 25
char altkeyhandling[MAX_ALTKEYHANDLING];
enum windows_key_handling key_handling;
#endif
/* copies of values in struct u, used during detection when the
originals are temporarily cleared; kept here rather than