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

A change of a controller button. More...

#include <JoypadButtonMsg.h>

Inheritance diagram for JoypadButtonMsg:
Collaboration diagram for JoypadButtonMsg:

Public Member Functions

virtual int Type ()
 Report this message's registered identity.
Public Member Functions inherited from Message
virtual ~Message ()
 Vtable slot 1.
virtual Message * Clone ()=0
 Produce a heap copy of this message.
virtual const char * GetName () const =0
 Report this message's class name.
virtual void PrintExtra (PrnStream &stream) const
 Write this message's payload to a diagnostic stream.
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.

Public Attributes

int mPad
int mButton
bool mPressed

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

A change of a controller button.

The control never constructs one; CheatsManager reads these members. The class name is inferred.

Member Function Documentation

◆ Type()

virtual int JoypadButtonMsg::Type ( )
inlinevirtual

Report this message's registered identity.

An implementation returns one word from the per-class identity table that spans 0x006d01ac through 0x006d035c. A sink compares the result against the identity it listens for, which is what ScriptSink::DispatchPriv() does against 0x006d024c. The read has no side effect, so the call MsgQueue::DispatchPriv() makes and discards has none either.

Returns
The identity.

Implements Message.

Member Data Documentation

◆ mPad

int JoypadButtonMsg::mPad

The controller.

◆ mButton

int JoypadButtonMsg::mButton

The button.

◆ mPressed

bool JoypadButtonMsg::mPressed

Whether the button went down.


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