Minor cleanup in CDolphinController

This commit is contained in:
Phillip Stephens 2023-01-07 11:49:21 -08:00
parent bd48696bf3
commit ff29497845
1 changed files with 5 additions and 2 deletions

View File

@ -7,10 +7,13 @@
#include <string.h>
CDolphinController::CDolphinController() : x1c4_(0xf0000000), x1c8_invalidControllers(0), x1cc_(0) {
CDolphinController::CDolphinController()
: x1c4_(PAD_CHAN0_BIT | PAD_CHAN1_BIT | PAD_CHAN2_BIT | PAD_CHAN3_BIT)
, x1c8_invalidControllers(0)
, x1cc_(0) {
static bool sIsInitialized = false;
if (!sIsInitialized) {
PADSetSpec(5);
PADSetSpec(PAD_SPEC_5);
PADInit();
sIsInitialized = true;
}