resonance 1.0.1
Loading...
Searching...
No Matches
KeyboardMgr Class Reference

Two-byte object with one shared instance, reached through shared(). More...

#include <keyboardmgr.h>

Public Member Functions

 KeyboardMgr ()
 Construct the instance through Reset().
void InitPortMap ()
 Set both bytes to 0xff, the second byte first.
 ~KeyboardMgr ()
 Do nothing.

Static Public Member Functions

static KeyboardMgr * shared ()
 Return the shared instance, constructing it on first use.

Public Attributes

unsigned char mBytes [2]
 The two bytes, both 0xff after construction.

Detailed Description

Two-byte object with one shared instance, reached through shared().

The purpose is unrecovered. The class has no RTTI, no embedded file path, and no string, and its routines sit among the compiler runtime between __main and sceCdTrayReq. Its name comes from the debugging symbols of the North American demo release. The demo's constructor, Reset(), and shared() have the same instructions as this class's routines. shared() builds the instance at 0x008de7c0 on first use, guarded by the word at 0x00725bf4, and registers the destructor with atexit. The constructor stores 0xff into both bytes through Reset(), and the destructor is empty. Three uncalled routines at 0x00558db8, 0x00558dc0, and 0x00558dc8 sit between Reset() and the destructor and each return zero, and position alone does not tie them to this class. The InputPoller constructor is the only caller of shared(), and it stores the pointer in InputPoller::mBytePairs. No routine reads the member again. No routine loads either byte, and their signedness is unknown.

Constructor & Destructor Documentation

◆ KeyboardMgr()

KeyboardMgr::KeyboardMgr ( )

Construct the instance through Reset().

shared() calls it. The body returns this in v0, which is what marks it as the constructor rather than the routine it calls.

Ghidra address:
NTSC-U/C: 0x00558d68
Ghidra address:
PAL: 0x00599ec0

◆ ~KeyboardMgr()

KeyboardMgr::~KeyboardMgr ( )

Do nothing.

shared() registers this destructor with atexit.

Ghidra address:
NTSC-U/C: 0x00558dd0
Ghidra address:
PAL: 0x00599f28

Member Function Documentation

◆ InitPortMap()

void KeyboardMgr::InitPortMap ( )

Set both bytes to 0xff, the second byte first.

The constructor is the one caller. The routine writes no return value.

Ghidra address:
NTSC-U/C: 0x00558d90
Ghidra address:
PAL: 0x00599ee8

◆ shared()

KeyboardMgr * KeyboardMgr::shared ( )
static

Return the shared instance, constructing it on first use.

Returns
The instance.
Ghidra address:
NTSC-U/C: 0x00558d10
Ghidra address:
PAL: 0x00599e68

Member Data Documentation

◆ mBytes

unsigned char KeyboardMgr::mBytes[2]

The two bytes, both 0xff after construction.

+0x00


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