summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2014-11-02 14:15:13 +1100
committerskidau <skidau@gmail.com>2014-11-02 14:15:13 +1100
commitb241b6eaddbd8a34c019247332281a82e8a99398 (patch)
treedfd1072a5e098db5c807d8c8a0dd5430efef92ee /Source/Core
parent5d18c66c996b2a377b51702240240833fcbb1294 (diff)
parent5a321d31dd32313978f06c01b9844d52f0b76c88 (diff)
Merge pull request #1452 from lioncash/morestatic
GCPadEmu/WiimoteEmu: Make some arrays static
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/HW/GCPadEmu.cpp10
-rw-r--r--Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp8
2 files changed, 9 insertions, 9 deletions
diff --git a/Source/Core/Core/HW/GCPadEmu.cpp b/Source/Core/Core/HW/GCPadEmu.cpp
index 89d7d8dbfa..da58c44af3 100644
--- a/Source/Core/Core/HW/GCPadEmu.cpp
+++ b/Source/Core/Core/HW/GCPadEmu.cpp
@@ -8,7 +8,7 @@
// TODO: Move to header file when VS supports constexpr.
const ControlState GCPad::DEFAULT_PAD_STICK_RADIUS = 1.0;
-const u16 button_bitmasks[] =
+static const u16 button_bitmasks[] =
{
PAD_BUTTON_A,
PAD_BUTTON_B,
@@ -19,18 +19,18 @@ const u16 button_bitmasks[] =
0 // MIC HAX
};
-const u16 trigger_bitmasks[] =
+static const u16 trigger_bitmasks[] =
{
PAD_TRIGGER_L,
PAD_TRIGGER_R,
};
-const u16 dpad_bitmasks[] =
+static const u16 dpad_bitmasks[] =
{
PAD_BUTTON_UP, PAD_BUTTON_DOWN, PAD_BUTTON_LEFT, PAD_BUTTON_RIGHT
};
-const char* const named_buttons[] =
+static const char* const named_buttons[] =
{
"A",
"B",
@@ -41,7 +41,7 @@ const char* const named_buttons[] =
"Mic"
};
-const char* const named_triggers[] =
+static const char* const named_triggers[] =
{
// i18n: Left
_trans("L"),
diff --git a/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp b/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp
index 8e84a2b6ab..aaf8169974 100644
--- a/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp
+++ b/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp
@@ -171,7 +171,7 @@ void EmulateSwing(AccelData* const accel
(&accel->x)[axis_map[i]] += swing[i] * g_dir[i] * SWING_INTENSITY;
}
-const u16 button_bitmasks[] =
+static const u16 button_bitmasks[] =
{
Wiimote::BUTTON_A,
Wiimote::BUTTON_B,
@@ -182,16 +182,16 @@ const u16 button_bitmasks[] =
Wiimote::BUTTON_HOME
};
-const u16 dpad_bitmasks[] =
+static const u16 dpad_bitmasks[] =
{
Wiimote::PAD_UP, Wiimote::PAD_DOWN, Wiimote::PAD_LEFT, Wiimote::PAD_RIGHT
};
-const u16 dpad_sideways_bitmasks[] =
+static const u16 dpad_sideways_bitmasks[] =
{
Wiimote::PAD_RIGHT, Wiimote::PAD_LEFT, Wiimote::PAD_UP, Wiimote::PAD_DOWN
};
-const char* const named_buttons[] =
+static const char* const named_buttons[] =
{
"A", "B", "1", "2", "-", "+", "Home",
};