Message the controller poll sends when an analogue stick moved, while stick messages are on.
More...
#include <joypadanalogstickmsg.h>
|
| | 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.
|
| 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.
|
|
| static Message * | NewMessage (int nType) |
| | Produce a message of the identified class through the factory list.
|
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.
◆ JoypadAnalogStickMsg()
| JoypadAnalogStickMsg::JoypadAnalogStickMsg |
( |
int | nPad, |
|
|
int | nStick, |
|
|
float | fX, |
|
|
float | fY ) |
|
inline |
Construct the message of a stick.
Inline in the controller poll.
- Parameters
-
| nPad | The controller. |
| nStick | The stick, 0 for the left one. |
| fX | The horizontal position, from -1 to 1. |
| fY | The vertical position, from -1 to 1. |
◆ operator new()
| void * JoypadAnalogStickMsg::operator new |
( |
size_t | nSize | ) |
|
|
inline |
Allocate a message, billed to the class name.
- Parameters
-
| nSize | The object size the compiler supplies. |
- Returns
- The block.
◆ operator delete()
| void JoypadAnalogStickMsg::operator delete |
( |
void * | pBlock | ) |
|
|
inline |
Release a message.
- Parameters
-
◆ 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
-
| stream | The 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: