1#include "KPadDirector.hh"
6void KPadDirector::calc() {
12void KPadDirector::calcPads() {
13 m_ghostController->calc();
14 m_hostController->calc();
18void KPadDirector::reset() {
19 m_playerInput.reset();
23void KPadDirector::startGhostProxies() {
28void KPadDirector::endGhostProxies() {
33void KPadDirector::setGhostPad(
const u8 *inputs,
bool driftIsAuto) {
34 m_playerInput.setGhostController(m_ghostController, inputs, driftIsAuto);
37void KPadDirector::setHostPad(
bool driftIsAuto) {
38 m_playerInput.setHostController(m_hostController, driftIsAuto);
42KPadDirector *KPadDirector::CreateInstance() {
44 return s_instance =
new KPadDirector;
48void KPadDirector::DestroyInstance() {
50 auto *instance = s_instance;
56KPadDirector::KPadDirector() {
57 m_ghostController =
new KPadGhostController;
58 m_hostController =
new KPadHostController;
62KPadDirector::~KPadDirector() {
65 WARN(
"KPadDirector instance not explicitly handled!");
69KPadDirector *KPadDirector::s_instance =
nullptr;
void startGhostProxy()
Signals to start reading ghost data after fade-in.
void endGhostProxy()
Signals to stop reading ghost data after race completion.
High-level handling for generic system operations, such as input reading, race configuration,...