add new clas

This commit is contained in:
2025-07-06 12:51:23 +08:00
parent 9447453e47
commit 0a24a2f3c7
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,5 @@
//
// Created by sfd on 25-6-27.
//
#include "KeyCodes.h"

View File

@ -0,0 +1,28 @@
//
// Created by sfd on 25-6-27.
//
#ifndef KEYCODES_H
#define KEYCODES_H
#include <SDL3/SDL_keycode.h>
#include <SDL3/SDL_mouse.h>
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