2.4.7
minecraft-pi-reborn/pipeline/head This commit looks good Details

This commit is contained in:
TheBrokenRail 2023-05-18 18:38:35 -04:00
parent 45b93534fa
commit e0ab968fa3
3 changed files with 9 additions and 3 deletions

View File

@ -1 +1 @@
2.4.6 2.4.7

View File

@ -1,5 +1,11 @@
# Changelog # Changelog
**2.4.7**
* Improve Server Performance
* Add ``Add Biome Colors To Grass`` Feature Flag (Disabled By Default)
* Add ``Generate Caves`` Feature Flag (Enabled By Default)
* Allow Mods To Access The Original GLFW Keycode For Key Events
**2.4.6** **2.4.6**
* [Minimal Controller Support](CONTROLS.md) * [Minimal Controller Support](CONTROLS.md)
* Fix Holding Left-Click When Attacking * Fix Holding Left-Click When Attacking

View File

@ -166,12 +166,12 @@ static SDLMod glfw_modifier_to_sdl_modifier(int mods) {
} }
// Pass Key Presses To SDL // Pass Key Presses To SDL
static void glfw_key_raw(int key, int scancode, int action, int mods) { static void glfw_key_raw(int key, __attribute__((unused)) int scancode, int action, int mods) {
SDL_Event event; SDL_Event event;
int up = action == GLFW_RELEASE; int up = action == GLFW_RELEASE;
event.type = up ? SDL_KEYUP : SDL_KEYDOWN; event.type = up ? SDL_KEYUP : SDL_KEYDOWN;
event.key.state = up ? SDL_RELEASED : SDL_PRESSED; event.key.state = up ? SDL_RELEASED : SDL_PRESSED;
event.key.keysym.scancode = scancode; event.key.keysym.scancode = key; // Allow MCPI To Access Original GLFW Keycode
event.key.keysym.mod = glfw_modifier_to_sdl_modifier(mods); event.key.keysym.mod = glfw_modifier_to_sdl_modifier(mods);
event.key.keysym.sym = glfw_key_to_sdl_key(key); event.key.keysym.sym = glfw_key_to_sdl_key(key);
SDL_PushEvent(&event); SDL_PushEvent(&event);