mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
35 lines
835 B
C++
35 lines
835 B
C++
/********************************************************************
|
|
Minecraft: Pocket Edition - Decompilation Project
|
|
Copyright (C) 2023 iProgramInCpp
|
|
|
|
The following code is licensed under the BSD 1 clause license.
|
|
SPDX-License-Identifier: BSD-1-Clause
|
|
********************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#ifdef USE_SDL
|
|
#include "../thirdparty/SDL2/SDL2.h"
|
|
|
|
// because SDL sucks and makes no sense and sets bit 1<<30 for some keycodes for some godamn reason
|
|
enum eSDLVirtualKeys
|
|
{
|
|
#define CODE(x) SDLVK_ ## x,
|
|
#include "SDLKeyCodes.h"
|
|
#undef CODE
|
|
};
|
|
|
|
#endif
|
|
|
|
#ifdef _WIN32
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <Windows.h>
|
|
#endif
|
|
|
|
#ifdef USE_NATIVE_ANDROID
|
|
#include <android/keycodes.h>
|
|
|
|
#define AKEYCODE_ARROW_LEFT AKEYCODE_DPAD_LEFT
|
|
#define AKEYCODE_ARROW_RIGHT AKEYCODE_DPAD_RIGHT
|
|
#endif
|