#include #include #include #include #include "input-internal.h" // Translator static int32_t sdl_key_to_minecraft_key_injection(Common_sdl_key_to_minecraft_key_t original, int32_t sdl_key) { switch (sdl_key) { #define KEY(name, value) case SDLK_##name: return MC_KEY_##name; #include #undef KEY default: { // Call Original Method return original(sdl_key); } } } // Init void _init_keys() { overwrite_calls(Common_sdl_key_to_minecraft_key, sdl_key_to_minecraft_key_injection); }