/*
PolyGun

Copyright (c) 2023 mrkubax10 <mrkubax10@onet.pl>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#include <string>

#ifndef POLYGUN_WINDOW_KEYBOARD_HPP
#define POLYGUN_WINDOW_KEYBOARD_HPP

namespace polygun::window {
	enum KeyCode {
		KEY_NONE,
		KEY_ESCAPE,
		KEY_F1,
		KEY_F2,
		KEY_F3,
		KEY_F4,
		KEY_F5,
		KEY_F6,
		KEY_F7,
		KEY_F8,
		KEY_F9,
		KEY_F10,
		KEY_F11,
		KEY_F12,
		KEY_PRINT_SCREEN,
		KEY_SCROLL_LOCK,
		KEY_PAUSE,
		KEY_TILDE,
		KEY_1,
		KEY_2,
		KEY_3,
		KEY_4,
		KEY_5,
		KEY_6,
		KEY_7,
		KEY_8,
		KEY_9,
		KEY_0,
		KEY_MINUS,
		KEY_EQUALS,
		KEY_BACKSLASH,
		KEY_BACKSPACE,
		KEY_INSERT,
		KEY_HOME,
		KEY_PAGE_UP,
		KEY_NUM_LOCK,
		KEY_NUM_SLASH,
		KEY_NUM_MULTIPLY,
		KEY_NUM_MINUS,
		KEY_TAB,
		KEY_Q,
		KEY_W,
		KEY_E,
		KEY_R,
		KEY_T,
		KEY_Y,
		KEY_U,
		KEY_I,
		KEY_O,
		KEY_P,
		KEY_LEFT_SQUARE_BRACKET,
		KEY_RIGHT_SQUARE_BRACKET,
		KEY_RETURN,
		KEY_DELETE,
		KEY_END,
		KEY_PAGE_DOWN,
		KEY_NUM_7,
		KEY_NUM_8,
		KEY_NUM_9,
		KEY_NUM_PLUS,
		KEY_CAPS_LOCK,
		KEY_A,
		KEY_S,
		KEY_D,
		KEY_F,
		KEY_G,
		KEY_H,
		KEY_J,
		KEY_K,
		KEY_L,
		KEY_SEMICOLON,
		KEY_QUOTE,
		KEY_NUM_4,
		KEY_NUM_5,
		KEY_NUM_6,
		KEY_LEFT_SHIFT,
		KEY_Z,
		KEY_X,
		KEY_C,
		KEY_V,
		KEY_B,
		KEY_N,
		KEY_M,
		KEY_COMMA,
		KEY_DOT,
		KEY_SLASH,
		KEY_RIGHT_SHIFT,
		KEY_UP,
		KEY_NUM_1,
		KEY_NUM_2,
		KEY_NUM_3,
		KEY_NUM_RETURN,
		KEY_LEFT_CONTROL,
		KEY_LEFT_SUPER,
		KEY_LEFT_ALT,
		KEY_SPACE,
		KEY_RIGHT_ALT,
		KEY_RIGHT_SUPER,
		KEY_CONTEXT,
		KEY_RIGHT_CONTROL,
		KEY_LEFT,
		KEY_DOWN,
		KEY_RIGHT,
		KEY_NUM_0,
		KEY_NUM_DOT,
		KEY_COUNT
	};
	namespace keyboard {
		const std::string& key_code_name(KeyCode key);
	}
}


#endif // POLYGUN_WINDOW_KEYBOARD_HPP
