42 void *
operator new(
size_t nSize) {
43 return PoolMemAlloc(
static_cast<int>(nSize),
"JoypadConnectionMsg", 0);
51 void operator delete(
void *pBlock) {
85 return "JoypadConnectionMsg";
const char * GetName() const override
Report this message's class name.
Definition joypadconnectionmsg.h:84
void PrintExtra(PrnStream &stream) const override
Write the controller and whether it is connected.
int GetConnected() const
Definition joypadconnectionmsg.h:98
int GetPad() const
Definition joypadconnectionmsg.h:103
Message * Clone() override
Produce a heap copy of this message.
Definition joypadconnectionmsg.h:62
JoypadConnectionMsg(int nPad, int nConnected)
Construct the message of a controller.
Definition joypadconnectionmsg.h:33
int Type() override
Report this message's registered identity.
Definition joypadconnectionmsg.h:73
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_nJoypadConnectionMsgType
Identity that JoypadConnectionMsg::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.