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>
38 lines
1.4 KiB
C++
38 lines
1.4 KiB
C++
//===========================================================================//
|
|
// File: PCkeybd.cc //
|
|
// Project: MUNGA Brick: Platform-specific IO //
|
|
// Contents: PC keyboard interface //
|
|
//---------------------------------------------------------------------------//
|
|
// Date Who Modification //
|
|
// -------- --- -----------------------------------------------------------//
|
|
// 01/19/95 CPB Initial coding. //
|
|
//---------------------------------------------------------------------------//
|
|
// Copyright (C) 1995, Virtual World Entertainment, Inc. All rights reserved //
|
|
// PROPRIETARY and CONFIDENTIAL //
|
|
//===========================================================================//
|
|
|
|
#include <mungal4.hpp>
|
|
#pragma hdrstop
|
|
|
|
#include <iostream.h>
|
|
#include <conio.h>
|
|
|
|
int PC_Keyboard_Read(void)
|
|
{
|
|
int c;
|
|
|
|
if (!kbhit()) // if keyboard has not been hit, return zero
|
|
{
|
|
return(0);
|
|
}
|
|
else
|
|
{
|
|
c = getch(); // keyboard was hit, get code
|
|
if (c == 0) // zero: next character is extended code
|
|
{
|
|
c = getch() | 0x0100; // flag as extended
|
|
}
|
|
return(c); // return the value
|
|
}
|
|
}
|