From 3900fca3048c959758d191912f46a4992fbe5a86 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 8 Nov 2023 07:46:02 -0800 Subject: [PATCH] Fixed FreeBSD build (cherry picked from commit a4c6b38fef2ff046e38072200b096c03389bfa28) --- src/core/freebsd/SDL_evdev_kbd_freebsd.c | 4 ++++ src/core/linux/SDL_evdev_kbd.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/core/freebsd/SDL_evdev_kbd_freebsd.c b/src/core/freebsd/SDL_evdev_kbd_freebsd.c index 57a469725..8504b80d2 100644 --- a/src/core/freebsd/SDL_evdev_kbd_freebsd.c +++ b/src/core/freebsd/SDL_evdev_kbd_freebsd.c @@ -468,6 +468,10 @@ static void k_shift(SDL_EVDEV_keyboard_state *kbd, unsigned char value, char up_ } } +void SDL_EVDEV_kbd_set_muted(SDL_EVDEV_keyboard_state *state, SDL_bool muted) +{ +} + void SDL_EVDEV_kbd_keycode(SDL_EVDEV_keyboard_state *kbd, unsigned int keycode, int down) { keymap_t key_map; diff --git a/src/core/linux/SDL_evdev_kbd.c b/src/core/linux/SDL_evdev_kbd.c index fe0cac03e..73d14848c 100644 --- a/src/core/linux/SDL_evdev_kbd.c +++ b/src/core/linux/SDL_evdev_kbd.c @@ -830,6 +830,7 @@ SDL_EVDEV_keyboard_state *SDL_EVDEV_kbd_init(void) void SDL_EVDEV_kbd_set_muted(SDL_EVDEV_keyboard_state *state, SDL_bool muted) { } + void SDL_EVDEV_kbd_keycode(SDL_EVDEV_keyboard_state *state, unsigned int keycode, int down) { }