diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2016-10-03 18:54:30 +0200 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2016-10-03 18:59:52 +0200 |
| commit | fad17246db88dc47e7ce455684af477a7dc6100e (patch) | |
| tree | 9b1229e4f4292f80bb2b44220b7b2c760b618913 /Source/Core/InputCommon/ControllerInterface/Quartz | |
| parent | cc66f0336f37104d55915270094f333dcda268dd (diff) | |
InputCommon: Fix formatting issues in Quartz
This wasn't caught by the lint script because it was broken (by me) at
some point :(
If it had been rebased, it wouldn't have passed lint
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Quartz')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.h | 1 | ||||
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.h b/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.h index 5c0daa6846..8997fc0e53 100644 --- a/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.h +++ b/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.h @@ -12,7 +12,6 @@ namespace ciface { namespace Quartz { - std::string KeycodeToName(const CGKeyCode keycode); class KeyboardAndMouse : public Core::Device diff --git a/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm b/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm index 18f3e553f3..8aa83370dd 100644 --- a/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm +++ b/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm @@ -11,8 +11,8 @@ namespace ciface { namespace Quartz { - -std::string KeycodeToName(const CGKeyCode keycode) { +std::string KeycodeToName(const CGKeyCode keycode) +{ static const std::map<CGKeyCode, std::string> named_keys = { {kVK_ANSI_A, "A"}, {kVK_ANSI_B, "B"}, |
