add new clas
This commit is contained in:
5
Hazel/src/Hazel/Core/KeyCodes.cpp
Normal file
5
Hazel/src/Hazel/Core/KeyCodes.cpp
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
//
|
||||||
|
// Created by sfd on 25-6-27.
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "KeyCodes.h"
|
||||||
28
Hazel/src/Hazel/Core/KeyCodes.h
Normal file
28
Hazel/src/Hazel/Core/KeyCodes.h
Normal 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
|
||||||
Reference in New Issue
Block a user