mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-23 19:00:27 +01:00
66cc1d014f
Add some empty lines. Move some files. Replace long repeating variable names with shorter preprocessors.
33 lines
706 B
C++
33 lines
706 B
C++
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
|
|
|
#ifndef SE_INCL_MENU_GADGET_KEYDEFINITION_H
|
|
#define SE_INCL_MENU_GADGET_KEYDEFINITION_H
|
|
#ifdef PRAGMA_ONCE
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "MenuGadget.h"
|
|
|
|
|
|
class CMGKeyDefinition : public CMenuGadget {
|
|
public:
|
|
INDEX mg_iState;
|
|
INDEX mg_iControlNumber;
|
|
|
|
CTString mg_strLabel;
|
|
CTString mg_strBinding;
|
|
|
|
CMGKeyDefinition(void);
|
|
void Appear(void);
|
|
void Disappear(void);
|
|
void OnActivate(void);
|
|
// return TRUE if handled
|
|
BOOL OnKeyDown(int iVKey);
|
|
void Think(void);
|
|
// set names for both key bindings
|
|
void SetBindingNames(BOOL bDefining);
|
|
void DefineKey(INDEX iDik);
|
|
void Render(CDrawPort *pdp);
|
|
};
|
|
|
|
#endif /* include-once check. */ |