mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
InputCommon: Use nested namespace specifiers where applicable
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user