summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Xlib
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2019-06-18 11:33:08 +0200
committerGitHub <noreply@github.com>2019-06-18 11:33:08 +0200
commitff96dc0e6ffd250b23ccb5ebceb12623da604435 (patch)
tree1a1279d6bff0945ae575c195ec357af239896d8f /Source/Core/InputCommon/ControllerInterface/Xlib
parentac562279c3a9fe9cc660b703ed0fd3f8ab2be758 (diff)
parent72b04a353ddfa79ec10fe447bef8eeaefc824976 (diff)
Merge pull request #8199 from lioncash/namespace
General: Use nested namespace specifiers where applicable
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Xlib')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp7
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h7
2 files changed, 4 insertions, 10 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp
index 77acf8d1d3..30f10c8537 100644
--- a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp
@@ -46,9 +46,7 @@
// more responsive. This might be useful as a user-customizable option.
#define MOUSE_AXIS_SMOOTHING 1.5f
-namespace ciface
-{
-namespace XInput2
+namespace ciface::XInput2
{
// This function will add zero or more KeyboardMouse objects to devices.
void PopulateDevices(void* const hwnd)
@@ -369,5 +367,4 @@ ControlState KeyboardMouse::Axis::GetState() const
{
return std::max(0.0f, *m_axis / (m_positive ? MOUSE_AXIS_SENSITIVITY : -MOUSE_AXIS_SENSITIVITY));
}
-} // namespace XInput2
-} // namespace ciface
+} // namespace ciface::XInput2
diff --git a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h
index 72ea347461..e657f8b8df 100644
--- a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h
+++ b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h
@@ -14,9 +14,7 @@ extern "C" {
#include "InputCommon/ControllerInterface/ControllerInterface.h"
-namespace ciface
-{
-namespace XInput2
+namespace ciface::XInput2
{
void PopulateDevices(void* const hwnd);
@@ -113,5 +111,4 @@ private:
const int pointer_deviceid, keyboard_deviceid;
std::string name;
};
-} // namespace XInput2
-} // namespace ciface
+} // namespace ciface::XInput2