summaryrefslogtreecommitdiff
path: root/src/enums
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-09 22:54:01 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-09 22:56:17 +0300
commit481ea0b776bbab92b500540f59c5a191c6e93cba (patch)
tree5b73e15b5ab16d67095852d83ba764d83c36cbb8 /src/enums
parentc108b00ddc98e99182bf1a0f83602772f4931122 (diff)
downloadmanaplus-481ea0b776bbab92b500540f59c5a191c6e93cba.tar.gz
manaplus-481ea0b776bbab92b500540f59c5a191c6e93cba.tar.bz2
manaplus-481ea0b776bbab92b500540f59c5a191c6e93cba.tar.xz
manaplus-481ea0b776bbab92b500540f59c5a191c6e93cba.zip
Add workaround for fix alt-tab issue in SDL2.
Also add option to enable/disable this workaround.
Diffstat (limited to 'src/enums')
-rw-r--r--src/enums/input/keyboardfocus.h34
1 files changed, 34 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
+ */
+
+#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