36 : mPad(nPad), mStick(nStick), mX(fX), mY(fY) {
45 void *
operator new(
size_t nSize) {
46 return PoolMemAlloc(
static_cast<int>(nSize),
"JoypadAnalogStickMsg", 0);
54 void operator delete(
void *pBlock) {
88 return "JoypadAnalogStickMsg";
const char * GetName() const override
Report this message's class name.
Definition joypadanalogstickmsg.h:87
Message * Clone() override
Produce a heap copy of this message.
Definition joypadanalogstickmsg.h:65
void PrintExtra(PrnStream &stream) const override
Write the controller, the stick, and its position.
JoypadAnalogStickMsg(int nPad, int nStick, float fX, float fY)
Construct the message of a stick.
Definition joypadanalogstickmsg.h:35
int Type() override
Report this message's registered identity.
Definition joypadanalogstickmsg.h:76
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_nJoypadAnalogStickMsgType
Identity that JoypadAnalogStickMsg::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.