2.4.7
This commit is contained in:
parent
45b93534fa
commit
e0ab968fa3
@ -1,5 +1,11 @@
|
||||
# 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**
|
||||
* [Minimal Controller Support](CONTROLS.md)
|
||||
* Fix Holding Left-Click When Attacking
|
||||
|
@ -166,12 +166,12 @@ static SDLMod glfw_modifier_to_sdl_modifier(int mods) {
|
||||
}
|
||||
|
||||
// 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;
|
||||
int up = action == GLFW_RELEASE;
|
||||
event.type = up ? SDL_KEYUP : SDL_KEYDOWN;
|
||||
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.sym = glfw_key_to_sdl_key(key);
|
||||
SDL_PushEvent(&event);
|
||||
|
Loading…
Reference in New Issue
Block a user