mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
InputCommon: Use nested namespace specifiers where applicable
This commit is contained in:
@ -4,14 +4,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace ciface
|
||||
{
|
||||
namespace OSX
|
||||
namespace ciface::OSX
|
||||
{
|
||||
void Init(void* window);
|
||||
void PopulateDevices(void* window);
|
||||
void DeInit();
|
||||
|
||||
void DeviceElementDebugPrint(const void*, void*);
|
||||
} // namespace OSX
|
||||
} // namespace ciface
|
||||
} // namespace ciface::OSX
|
||||
|
@ -17,9 +17,7 @@
|
||||
#include "InputCommon/ControllerInterface/OSX/OSXJoystick.h"
|
||||
#include "InputCommon/ControllerInterface/OSX/RunLoopStopper.h"
|
||||
|
||||
namespace ciface
|
||||
{
|
||||
namespace OSX
|
||||
namespace ciface::OSX
|
||||
{
|
||||
constexpr CFTimeInterval FOREVER = 1e20;
|
||||
static std::thread s_hotplug_thread;
|
||||
@ -227,5 +225,4 @@ void DeInit()
|
||||
IOHIDManagerClose(HIDManager, kIOHIDOptionsTypeNone);
|
||||
CFRelease(HIDManager);
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace ciface::OSX
|
||||
|
@ -11,9 +11,7 @@
|
||||
#include "InputCommon/ControllerInterface/Device.h"
|
||||
#include "InputCommon/ControllerInterface/ForceFeedback/ForceFeedbackDevice.h"
|
||||
|
||||
namespace ciface
|
||||
{
|
||||
namespace OSX
|
||||
namespace ciface::OSX
|
||||
{
|
||||
class Joystick : public ForceFeedback::ForceFeedbackDevice
|
||||
{
|
||||
@ -90,5 +88,4 @@ private:
|
||||
|
||||
ForceFeedback::FFDeviceAdapterReference m_ff_device;
|
||||
};
|
||||
} // namespace OSX
|
||||
} // namespace ciface
|
||||
} // namespace ciface::OSX
|
||||
|
@ -13,9 +13,7 @@
|
||||
#include "Common/Logging/Log.h"
|
||||
#include "Common/StringUtil.h"
|
||||
|
||||
namespace ciface
|
||||
{
|
||||
namespace OSX
|
||||
namespace ciface::OSX
|
||||
{
|
||||
void Joystick::AddElements(CFArrayRef elements, std::set<IOHIDElementCookie>& cookies)
|
||||
{
|
||||
@ -341,5 +339,4 @@ bool Joystick::IsSameDevice(const IOHIDDeviceRef other_device) const
|
||||
{
|
||||
return m_device == other_device;
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace ciface::OSX
|
||||
|
@ -6,9 +6,7 @@
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
namespace ciface
|
||||
{
|
||||
namespace OSX
|
||||
namespace ciface::OSX
|
||||
{
|
||||
class RunLoopStopper
|
||||
{
|
||||
@ -40,6 +38,4 @@ public:
|
||||
CFRunLoopRemoveSource(runloop, m_source, mode);
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace OSX
|
||||
} // namespace ciface
|
||||
} // namespace ciface::OSX
|
||||
|
Reference in New Issue
Block a user