wavelength 1.0.0
Loading...
Searching...
No Matches
JoypadAnalogStickMsg Class Reference

Message the controller poll sends when an analogue stick moved, while stick messages are on. More...

#include <joypadanalogstickmsg.h>

Inheritance diagram for JoypadAnalogStickMsg:
Collaboration diagram for JoypadAnalogStickMsg:

Public Member Functions

 JoypadAnalogStickMsg (int nPad, int nStick, float fX, float fY)
 Construct the message of a stick.
void * operator new (size_t nSize)
 Allocate a message, billed to the class name.
void operator delete (void *pBlock)
 Release a message.
Message * Clone () override
 Produce a heap copy of this message.
int Type () override
 Report this message's registered identity.
const char * GetName () const override
 Report this message's class name.
void PrintExtra (PrnStream &stream) const override
 Write the controller, the stick, and its position.
Public Member Functions inherited from Message
virtual ~Message ()
 Vtable slot 1.
virtual void saveGuts (BinStream &stream) const
 Write this message's payload to a stream.
virtual void restoreGuts (BinStream &stream)
 Read this message's payload from a stream.
virtual ~Message ()
virtual void Unused1 ()
 Not called by the control.

Additional Inherited Members

Static Public Member Functions inherited from Message
static Message * NewMessage (int nType)
 Produce a message of the identified class through the factory list.

Detailed Description

Message the controller poll sends when an analogue stick moved, while stick messages are on.

The RTTI includes the class name and records Message as the base. The object is 0x14 bytes, and its vtable is at 0x003d69d8.

Constructor & Destructor Documentation

◆ JoypadAnalogStickMsg()

JoypadAnalogStickMsg::JoypadAnalogStickMsg ( int nPad,
int nStick,
float fX,
float fY )
inline

Construct the message of a stick.

Inline in the controller poll.

Parameters
nPadThe controller.
nStickThe stick, 0 for the left one.
fXThe horizontal position, from -1 to 1.
fYThe vertical position, from -1 to 1.

Member Function Documentation

◆ operator new()

void * JoypadAnalogStickMsg::operator new ( size_t nSize)
inline

Allocate a message, billed to the class name.

Parameters
nSizeThe object size the compiler supplies.
Returns
The block.

◆ operator delete()

void JoypadAnalogStickMsg::operator delete ( void * pBlock)
inline

Release a message.

Parameters
pBlockThe block.

◆ Clone()

Message * JoypadAnalogStickMsg::Clone ( )
inlineoverridevirtual

Produce a heap copy of this message.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x003a7498
Ghidra address:
PAL: 0x00416178

Implements Message.

◆ Type()

int JoypadAnalogStickMsg::Type ( )
inlineoverridevirtual

Report this message's registered identity.

Returns
g_nJoypadAnalogStickMsgType.
Ghidra address:
NTSC-U/C: 0x003a7500
Ghidra address:
PAL: 0x004161e0

Implements Message.

◆ GetName()

const char * JoypadAnalogStickMsg::GetName ( ) const
inlineoverridevirtual

Report this message's class name.

Returns
The literal JoypadAnalogStickMsg.
Ghidra address:
NTSC-U/C: 0x003a7510
Ghidra address:
PAL: 0x004161f0

Implements Message.

◆ PrintExtra()

void JoypadAnalogStickMsg::PrintExtra ( PrnStream & stream) const
overridevirtual

Write the controller, the stick, and its position.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x0028c1e0
Ghidra address:
PAL: 0x00295b30

Reimplemented from Message.


The documentation for this class was generated from the following file: