You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.0 KiB
76 lines
2.0 KiB
#if defined INCL_KEY_MACROS
|
|
#if !defined EMU_KEY_MACRO_H
|
|
#define EMU_KEY_MACRO_H
|
|
#pragma once
|
|
|
|
//******************************************************************************
|
|
// File: \wacker\tdll\Keymacro.h Created: 6/2/98 By: Dwayne M. Newsome
|
|
//
|
|
// Copyright 1998 by Hilgraeve Inc. --- Monroe, MI
|
|
// All rights reserved
|
|
//
|
|
// Description:
|
|
// This file represents a key macro. It is a representation of a remapped key
|
|
// and the key strokes it represents.
|
|
//
|
|
// $Revision: 4 $
|
|
// $Date: 12/27/01 2:15p $
|
|
// $Id: keymacro.h 1.2 1998/06/12 07:20:41 dmn Exp $
|
|
//
|
|
//******************************************************************************
|
|
|
|
#include <iostream.h>
|
|
|
|
#include "shared\classes\inc_cmp.h"
|
|
|
|
extern "C"
|
|
{
|
|
#include "keyutil.h"
|
|
}
|
|
|
|
//
|
|
// Emu_Key_Macro
|
|
//
|
|
//------------------------------------------------------------------------------
|
|
|
|
class Emu_Key_Macro
|
|
{
|
|
INC_NV_COMPARE_DEFINITION( Emu_Key_Macro );
|
|
|
|
friend istream & operator>>( istream & theStream, Emu_Key_Macro & aMacro );
|
|
friend ostream & operator<<( ostream & theStream, const Emu_Key_Macro & aMacro );
|
|
|
|
public:
|
|
|
|
enum
|
|
{
|
|
eMaxKeys = 100
|
|
};
|
|
|
|
//
|
|
// constructors and destructor
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
Emu_Key_Macro( void );
|
|
Emu_Key_Macro( const Emu_Key_Macro & aMacro );
|
|
|
|
~Emu_Key_Macro( void );
|
|
|
|
//
|
|
// assignment operator
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
Emu_Key_Macro & operator=( const Emu_Key_Macro & aMacro );
|
|
Emu_Key_Macro & operator=( const keyMacro * aMacro );
|
|
|
|
public:
|
|
|
|
KEYDEF mKey; // Assigned key
|
|
KEYDEF mKeyMacro[eMaxKeys]; // Array to hold the macro KEYDEFs
|
|
int mMacroLen; // # of hKeys in the macro
|
|
};
|
|
|
|
#endif
|
|
#endif
|