From ff29497845b98e1433853a47374104ed56f5c403 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sat, 7 Jan 2023 11:49:21 -0800 Subject: [PATCH] Minor cleanup in CDolphinController --- src/Kyoto/Input/CDolphinController.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Kyoto/Input/CDolphinController.cpp b/src/Kyoto/Input/CDolphinController.cpp index 1e052753..34e8a02a 100644 --- a/src/Kyoto/Input/CDolphinController.cpp +++ b/src/Kyoto/Input/CDolphinController.cpp @@ -7,10 +7,13 @@ #include -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; }