Complete disaster-recovery snapshot: engine/game source, game data assets, VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive. Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false, no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
88 lines
2.7 KiB
C++
88 lines
2.7 KiB
C++
//===========================================================================//
|
|
// File: controls.thh //
|
|
// Project: MUNGA Brick: Controls Module //
|
|
// Contents: Interface specification for Controls module //
|
|
//---------------------------------------------------------------------------//
|
|
// Date Who Modification //
|
|
// -------- --- -----------------------------------------------------------//
|
|
// 12/12/94 CPB Initial coding. //
|
|
//---------------------------------------------------------------------------//
|
|
// Copyright (C) 1995, Virtual World Entertainment, Inc. All rights reserved //
|
|
// PROPRIETARY and CONFIDENTIAL //
|
|
//===========================================================================//
|
|
|
|
#pragma once
|
|
|
|
#include "Adept.hpp"
|
|
#include "Controls.hpp"
|
|
|
|
namespace Adept {
|
|
|
|
//#########################################################################
|
|
//########################## TestControlsManager ##########################
|
|
//#########################################################################
|
|
|
|
class TestControlsManager:
|
|
public ControlsManager
|
|
{
|
|
//##########################################################################
|
|
// Inheritance support
|
|
//
|
|
public:
|
|
TestControlsManager();
|
|
~TestControlsManager();
|
|
|
|
void
|
|
Execute();
|
|
};
|
|
|
|
//#########################################################################
|
|
//############################# TestReceiver ##############################
|
|
//#########################################################################
|
|
|
|
//----------------- End of helper stuff -----------------
|
|
|
|
class TestControlsReceiver:
|
|
public Receiver
|
|
{
|
|
//#########################################################################
|
|
// Construction and Destruction Support
|
|
//
|
|
public:
|
|
TestControlsReceiver();
|
|
~TestControlsReceiver();
|
|
|
|
//##########################################################################
|
|
// Messaging Support
|
|
//
|
|
public:
|
|
enum {
|
|
KeyboardMessageID=Receiver::NextMessageID,
|
|
JoystickMessageID,
|
|
NextMessageID
|
|
};
|
|
|
|
void
|
|
KeyboardMessageHandler(ReceiverDataMessageOf<int> *);
|
|
void
|
|
JoystickMessageHandler(ReceiverDataMessageOf<Vector2DOf<Scalar> > *);
|
|
|
|
protected:
|
|
static const MessageEntry
|
|
MessageEntries[];
|
|
|
|
//##########################################################################
|
|
// Test Support
|
|
//
|
|
public:
|
|
int
|
|
keyStroke;
|
|
|
|
Vector2DOf<Scalar>
|
|
joystickValue;
|
|
};
|
|
|
|
}
|
|
|
|
|