41 void *
operator new(
size_t nSize) {
42 return PoolMemAlloc(
static_cast<int>(nSize),
"KeyboardKeyMsg", 0);
50 void operator delete(
void *pBlock) {
84 return "KeyboardKeyMsg";
int GetKey() const
Definition keyboardkeymsg.h:97
KeyboardKeyMsg(int nKey)
Construct the message of a key.
Definition keyboardkeymsg.h:32
int Type() override
Report this message's registered identity.
Definition keyboardkeymsg.h:72
void PrintExtra(PrnStream &stream) const override
Write the key.
const char * GetName() const override
Report this message's class name.
Definition keyboardkeymsg.h:83
Message * Clone() override
Produce a heap copy of this message.
Definition keyboardkeymsg.h:61
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Text output stream.
Definition prnstream.h:16
int g_nKeyboardKeyMsgType
Identity that KeyboardKeyMsg::Type() reports.
void * PoolMemAlloc(int nSize, const char *pszTag, int nAlign)
Allocate a block from the pool heaps and bill it to a tag.
void PoolMemFree(void *pBlock)
Return a block PoolMemAlloc() handed out to the pool heap that owns it.