From 481ea0b776bbab92b500540f59c5a191c6e93cba Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Sep 2017 22:54:01 +0300 Subject: Add workaround for fix alt-tab issue in SDL2. Also add option to enable/disable this workaround. --- src/enums/input/keyboardfocus.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/enums/input/keyboardfocus.h (limited to 'src/enums/input/keyboardfocus.h') diff --git a/src/enums/input/keyboardfocus.h b/src/enums/input/keyboardfocus.h new file mode 100644 index 000000000..9b80f7f20 --- /dev/null +++ b/src/enums/input/keyboardfocus.h @@ -0,0 +1,34 @@ +/* + * The ManaPlus Client + * Copyright (C) 2012-2017 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef ENUMS_INPUT_KEYBOARDFOCUS_H +#define ENUMS_INPUT_KEYBOARDFOCUS_H + +#include "enums/simpletypes/enumdefines.h" + +enumStart(KeyboardFocus) +{ + Unfocused = 0, + Focused = 1, + Focused2 = 2 +} +enumEnd(KeyboardFocus); + +#endif // ENUMS_INPUT_KEYBOARDFOCUS_H -- cgit v1.2.3-60-g2f50