Files
TeslaRel410/CODE/RP/MUNGA_L4/L4KEYBD.HPP
T
CydandClaude Fable 5 fdd9ac9d97 Initial import: Tesla Release 4.10 (Tesla:BattleTech & Tesla:Red Planet)
Archival snapshot of the Virtual World Entertainment Tesla cockpit
software, 1994-1996: MUNGA engine and L4 pod layer source (Borland
C++ 5.0), BT/RP game code, and game content (models, audio, maps,
gauges, Division renderer data). Includes third-party libraries:
Division dVS/DPL graphics, HMI SOS audio, WATTCP networking.

Files are preserved byte-for-byte (.gitattributes disables all
line-ending conversion). README.md documents the layout, target
hardware, and toolchain.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 13:21:58 -05:00

143 lines
5.0 KiB
C++

//===========================================================================//
// File: l4keybd.hpp //
// Project: MUNGA Brick: Platform-specific IO //
// Contents: PC keyboard interface //
//---------------------------------------------------------------------------//
// Date Who Modification //
// -------- --- -----------------------------------------------------------//
// 01/19/95 CPB Initial coding. //
// 11/16/95 KEO Add additional keycodes. //
//---------------------------------------------------------------------------//
// Copyright (C) 1995, Virtual World Entertainment, Inc. //
// All Rights reserved worldwide. //
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL. //
//===========================================================================//
#if !defined(L4KEYBD_HPP)
# define L4KEYBD_HPP
# if !defined(STYLE_HPP)
# include <style.hpp>
# endif
//
//----------------------------------------------------------------
// Handy keycode definitions
//----------------------------------------------------------------
//
# define PCK_ESC 0x001B // "escape" key
# define PCK_ENTER 0x000D // the ever-popular "enter" key
# define PCK_TAB 0x0009 // the obvious "tab" key
//
//----------------------------------------------------------------
// Extended keycodes: function keys
//----------------------------------------------------------------
//
# define PCK_F1 0x013B
# define PCK_F2 0x013C
# define PCK_F3 0x013D
# define PCK_F4 0x013E
# define PCK_F5 0x013F
# define PCK_F6 0x0140
# define PCK_F7 0x0141
# define PCK_F8 0x0142
# define PCK_F9 0x0143
# define PCK_F10 0x0144
# define PCK_F11 0x0185
# define PCK_F12 0x0186
//
//----------------------------------------------------------------
// Extended keycodes: ctrl-function keys
//----------------------------------------------------------------
//
# define PCK_CTL_F1 0x015E
# define PCK_CTL_F2 0x015F
# define PCK_CTL_F3 0x0160
# define PCK_CTL_F4 0x0161
# define PCK_CTL_F5 0x0162
# define PCK_CTL_F6 0x0163
# define PCK_CTL_F7 0x0164
# define PCK_CTL_F8 0x0165
# define PCK_CTL_F9 0x0166
# define PCK_CTL_F10 0x0167
# define PCK_CTL_F11 0x0189
# define PCK_CTL_F12 0x018A
//
//----------------------------------------------------------------
// Extended keycodes: alt-function keys
//----------------------------------------------------------------
//
# define PCK_ALT_F1 0x0168
# define PCK_ALT_F2 0x0169
# define PCK_ALT_F3 0x016A
# define PCK_ALT_F4 0x016B
# define PCK_ALT_F5 0x016C
# define PCK_ALT_F6 0x016D
# define PCK_ALT_F7 0x016E
# define PCK_ALT_F8 0x016F
# define PCK_ALT_F9 0x0170
# define PCK_ALT_F10 0x0171
# define PCK_ALT_F11 0x018B
# define PCK_ALT_F12 0x018C
//
//----------------------------------------------------------------
// Extended keycodes: cursor keys (numeric keypad WITH NUMLOCK OFF!)
//----------------------------------------------------------------
//
# define PCK_INS 0x0152
# define PCK_DEL 0x0153
# define PCK_HOME 0x0147
# define PCK_UP 0x0148
# define PCK_PGUP 0x0149
# define PCK_LEFT 0x014B
# define PCK_RIGHT 0x014D
# define PCK_END 0x014F
# define PCK_DOWN 0x0150
# define PCK_PGDN 0x0151
//
//----------------------------------------------------------------
// Extended keycodes: ctrl-cursor keys
//----------------------------------------------------------------
//
# define PCK_CTL_INS 0x0192
# define PCK_CTL_DEL 0x0193
# define PCK_CTL_HOME 0x0177
# define PCK_CTL_UP 0x018D
# define PCK_CTL_PGUP 0x0184
# define PCK_CTL_LEFT 0x0173
# define PCK_CTL_RIGHT 0x0174
# define PCK_CTL_END 0x0175
# define PCK_CTL_DOWN 0x0191
# define PCK_CTL_PGDN 0x0176
//
//----------------------------------------------------------------
// Extended keycodes: alt-cursor keys
//----------------------------------------------------------------
//
# define PCK_ALT_INS 0x01A2
# define PCK_ALT_DEL 0x01A3
# define PCK_ALT_HOME 0x0197
# define PCK_ALT_UP 0x0198
# define PCK_ALT_PGUP 0x0199
# define PCK_ALT_LEFT 0x019B
# define PCK_ALT_RIGHT 0x019D
# define PCK_ALT_END 0x019F
# define PCK_ALT_DOWN 0x01A0
# define PCK_ALT_PGDN 0x01A1
//
//----------------------------------------------------------------
// Extended keycodes: alt-keys
//----------------------------------------------------------------
//
# define PCK_ALT_W 0x0111
# define PCK_ALT_R 0x0113
# define PCK_ALT_P 0x0119
# define PCK_ALT_F 0x0121
# define PCK_ALT_K 0x0125
# define PCK_ALT_V 0x012F
# define PCK_ALT_SLASH 0x0135
extern int PC_Keyboard_Read(void); // returns code or zero if no key
#endif
//===========================================================================//