/* Address-linked initialized DGROUP objects from TDKPIN.EXE. */ #include "tdkpin_dgroup.h" #include "tdkpin_sound.h" enum { WIN16_VK_PRIOR = 0x21, WIN16_VK_NEXT = 0x22, WIN16_VK_END = 0x23, WIN16_VK_HOME = 0x24, WIN16_VK_LEFT = 0x25, WIN16_VK_UP = 0x26, WIN16_VK_RIGHT = 0x27, WIN16_VK_DOWN = 0x28, }; /* * DGROUP 1028:0590..05bf — twelve exact four-byte key bindings consumed by * 1008:2147. Entry order is significant because the binary stops at the first * virtual-key/control-state match. */ const TpWinCrtKeyBinding g_tpwincrt_key_bindings[12] = { {WIN16_VK_LEFT, 0, 0, TPWINCRT_SB_LINEUP}, {WIN16_VK_RIGHT, 0, 0, TPWINCRT_SB_LINEDOWN}, {WIN16_VK_LEFT, 1, 0, TPWINCRT_SB_PAGEUP}, {WIN16_VK_RIGHT, 1, 0, TPWINCRT_SB_PAGEDOWN}, {WIN16_VK_HOME, 0, 0, TPWINCRT_SB_TOP}, {WIN16_VK_END, 0, 0, TPWINCRT_SB_BOTTOM}, {WIN16_VK_UP, 0, 1, TPWINCRT_SB_LINEUP}, {WIN16_VK_DOWN, 0, 1, TPWINCRT_SB_LINEDOWN}, {WIN16_VK_PRIOR, 0, 1, TPWINCRT_SB_PAGEUP}, {WIN16_VK_NEXT, 0, 1, TPWINCRT_SB_PAGEDOWN}, {WIN16_VK_HOME, 1, 1, TPWINCRT_SB_TOP}, {WIN16_VK_END, 1, 1, TPWINCRT_SB_BOTTOM}, }; /* * DGROUP 1028:03ea..0441 — payload lengths copied from WAV resources * 2001..2022. Zero entries are the six resource numbers absent from the NE * resource table; nonzero values equal the RIFF length, excluding NE padding. */ const uint32_t g_sound_resource_byte_counts[22] = { 6302, 4594, 0, 7554, 0, 2906, 30452, 39134, 0, 0, 6710, 320, 46348, 0, 7946, 3518, 34842, 0, 5148, 30000, 3194, 22122, }; _Static_assert( sizeof(g_sound_resource_byte_counts) == 88, "TDKPIN sound-resource length table drift");