diff --git a/Hazel/src/Hazel/Core/KeyCodes.cpp b/Hazel/src/Hazel/Core/KeyCodes.cpp new file mode 100644 index 0000000..58b74a3 --- /dev/null +++ b/Hazel/src/Hazel/Core/KeyCodes.cpp @@ -0,0 +1,5 @@ +// +// Created by sfd on 25-6-27. +// + +#include "KeyCodes.h" diff --git a/Hazel/src/Hazel/Core/KeyCodes.h b/Hazel/src/Hazel/Core/KeyCodes.h new file mode 100644 index 0000000..9c812f3 --- /dev/null +++ b/Hazel/src/Hazel/Core/KeyCodes.h @@ -0,0 +1,28 @@ +// +// Created by sfd on 25-6-27. +// + +#ifndef KEYCODES_H +#define KEYCODES_H +#include +#include + + +namespace Hazel +{ + using KeyCode = SDL_Scancode; + + typedef enum MouseButton + { + BUTTON_LEFT = SDL_BUTTON_LEFT, + BUTTON_MIDDLE = SDL_BUTTON_MIDDLE, + BUTTON_RIGHT = SDL_BUTTON_RIGHT, + BUTTON_X1 = SDL_BUTTON_X1, + BUTTON_X2 = SDL_BUTTON_X2, + }MouseButton; + + //TODO: use self keycode, not use sdl directly +} + + +#endif //KEYCODES_H