Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/tools/atlas/AtlasUI/Misc/KeyMap.cpp
/* Copyright (C) 2013 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | int GetSDLKeyFromWxKeyCode(int wxkey) | ||||
case WXK_F9: return SDLK_F9; | case WXK_F9: return SDLK_F9; | ||||
case WXK_F10: return SDLK_F10; | case WXK_F10: return SDLK_F10; | ||||
case WXK_F11: return SDLK_F11; | case WXK_F11: return SDLK_F11; | ||||
case WXK_F12: return SDLK_F12; | case WXK_F12: return SDLK_F12; | ||||
case WXK_F13: return SDLK_F13; | case WXK_F13: return SDLK_F13; | ||||
case WXK_F14: return SDLK_F14; | case WXK_F14: return SDLK_F14; | ||||
case WXK_F15: return SDLK_F15; | case WXK_F15: return SDLK_F15; | ||||
case WXK_BACK: return SDLK_BACKSPACE; | |||||
case WXK_DELETE: return SDLK_DELETE; | |||||
case WXK_NUMLOCK: return SDLK_NUMLOCKCLEAR; | case WXK_NUMLOCK: return SDLK_NUMLOCKCLEAR; | ||||
case WXK_SCROLL: return SDLK_SCROLLLOCK; | case WXK_SCROLL: return SDLK_SCROLLLOCK; | ||||
// case WXK_: return SDLK_CAPSLOCK; | // case WXK_: return SDLK_CAPSLOCK; | ||||
case WXK_SHIFT: return SDLK_RSHIFT; | case WXK_SHIFT: return SDLK_RSHIFT; | ||||
// case WXK_: return SDLK_LSHIFT; | // case WXK_: return SDLK_LSHIFT; | ||||
case WXK_CONTROL: return SDLK_RCTRL; | case WXK_CONTROL: return SDLK_RCTRL; | ||||
// case WXK_: return SDLK_LCTRL; | // case WXK_: return SDLK_LCTRL; | ||||
case WXK_ALT: return SDLK_RALT; | case WXK_ALT: return SDLK_RALT; | ||||
Show All 20 Lines |
Wildfire Games · Phabricator