|
resonance 1.0.1
|
Reader of the physical controllers. More...
#include <inputpoller.h>
Public Member Functions | |
| InputPoller () | |
| virtual | ~InputPoller () |
| void | SetVibration (int nPort, int nSmallMotor, int nBigMotor) |
| Drive the vibration motors of the controller on one port. | |
| void | SetController (RawController *pController) |
| Set the controller the readings go to. | |
| void | SetActive (int bActive) |
| Set the word at +0x3c, which the constructor starts at 1. | |
| void | SetPaused (int bPaused) |
| Set the paused flag. | |
| void | DetachController (RawController *pController) |
| Clear the controller the readings go to, if it is pController. | |
| void | Poll () |
| Read the controllers once. | |
| void | SetGameInputEnabled (int bEnabled) |
| Set mGameInputEnabled. | |
| void | SetUnusedFlag () |
| Set mUnusedFlag to 1, the value the constructor starts it at. | |
| void | ClearUnusedFlag () |
| Clear mUnusedFlag. | |
| void | EmptyStubA () |
| Do nothing. | |
| void | EmptyStubB () |
| Do nothing. | |
| int | GetBusyJoypadSeen () |
| Report mBusyJoypadSeen. | |
| int | GetPressedThisPoll () |
| Report whether the last Poll() sent a reading out. | |
Public Attributes | |
| int | mPressedThisPoll |
| Non-zero when the last Poll() sent a reading out. | |
Reader of the physical controllers.
Its RTTI descriptor is at 0x0086f6d8. It has no base. The vptr lands after the data at +0x58, and the class is 0x5c bytes. Its vtable at 0x007e69b8 has two entries and a zero terminator at index 2, the type function and the destructor at 0x001df080. The destructor is the only virtual the class declares. The size comes from the allocation in the GameManagerImpl constructor.
The translation unit is InputPollerPS2.cpp, which the anonymous-namespace marker Q235_GLOBAL_$N$InputPollerPS2.cppXFKhgb24FindJoypadConnectionsCmd at 0x007e6ae8 records. That same marker names one file-private class, FindJoypadConnectionsCmd. The file is therefore the PlayStation 2 implementation, and a reconstructed implementation belongs at that basename rather than at a portable one. The string pool of the unit also holds the InputCheatDetector family and the cheat phrases, so the cheat decoder shares the file.
The member map comes from the constructor at 0x001ded98, the destructor, and the setup routine at 0x001df248 together, and it accounts for every byte up to the vptr. The purpose of each member is mostly unrecovered, so those members are private.
The constructor finishes in Init(), and the destructor begins with Shutdown().
| InputPoller::InputPoller | ( | ) |
|
virtual |
| void InputPoller::SetVibration | ( | int | nPort, |
| int | nSmallMotor, | ||
| int | nBigMotor ) |
Drive the vibration motors of the controller on one port.
The JoypadPS2 whose player is nPort receives both levels, and a player with no JoypadPS2 is ignored. ForceFeedbackMgr::ApplyMotors() is the recovered caller.
| nPort | The player, from 1. |
| nSmallMotor | The small motor's state, 0 or 1. |
| nBigMotor | The big motor's level. |
| void InputPoller::SetController | ( | RawController * | pController | ) |
Set the controller the readings go to.
GameManagerImpl passes the MetaGameWorld in the front end and the game world's RawController part during a game, or null where it has no world. The title is inferred.
| pController | The receiver of the readings, or null. |
| void InputPoller::SetActive | ( | int | bActive | ) |
Set the word at +0x3c, which the constructor starts at 1.
GameManagerImpl::Start() passes 1, and the begin-game and end-game handlers pass 0. The title is inferred.
| bActive | The flag. |
| void InputPoller::SetPaused | ( | int | bPaused | ) |
Set the paused flag.
GameManagerImpl's pause handler passes 1 and its unpause handler 0. The title is inferred.
| bPaused | The flag. |
| void InputPoller::DetachController | ( | RawController * | pController | ) |
Clear the controller the readings go to, if it is pController.
GameManagerImpl::EndGame() and the routine at 0x0010c050 run it before deleting the game world. The title is inferred.
| pController | The controller being withdrawn. |
| void InputPoller::Poll | ( | ) |
Read the controllers once.
Runs ReadControllers() and then FinishPoll(). GameManagerImpl::PollPlayback() is the caller. The title is inferred.
|
inline |
Set mGameInputEnabled.
GameManagerImpl::OnBeginGameLocal() passes 1 outside jukebox mode, and GameManagerImpl::Load() passes 0. The title is inferred.
| bEnabled | The flag. |
|
inline |
Set mUnusedFlag to 1, the value the constructor starts it at.
The body is inline. The one out-of-line copy has no caller. The title is inferred.
|
inline |
Clear mUnusedFlag.
The body is inline. GameManagerImpl's constructor expands it at 0x00106024, and the one out-of-line copy has no caller. The title is inferred.
|
inline |
Do nothing.
The body is inline, and the one out-of-line copy has no caller. Its place between the other InputPoller accessor copies is the only evidence for the class. The title is inferred.
|
inline |
Do nothing.
Recorded on the same evidence as EmptyStubA(). The title is inferred.
|
inline |
Report mBusyJoypadSeen.
The body is inline, and the one out-of-line copy has no caller. The title is inferred.
|
inline |
Report whether the last Poll() sent a reading out.
The body is inline. GameManagerImpl::PollPlayback() expands it, and the one out-of-line copy has no caller. The title is inferred.
| int InputPoller::mPressedThisPoll |
Non-zero when the last Poll() sent a reading out.
ReadControllers() clears it on entry and sets it for each press it sends. Public because MetLogoScreen's slot 26 at 0x002bac40 reads it directly to restart the attract-mode idle count. +0x38