keymaps: define 'x11' and 'linux' on any platform with Wayland

Such as FreeBSD
This commit is contained in:
Greg V 2019-01-01 02:53:29 +03:00
parent 1520f022c5
commit f1e516bfaf

View File

@ -44,7 +44,7 @@
#include "SDL.h"
#endif
#ifdef __linux__
#if defined(__linux__) || defined(HAVE_WAYLAND)
#include <linux/input.h>
#include <linux/kd.h>
#endif
@ -848,7 +848,7 @@ const struct rarch_key_map rarch_key_map_x11[] = {
};
#endif
#ifdef __linux__
#if defined(__linux__) || defined(HAVE_WAYLAND)
const struct rarch_key_map rarch_key_map_linux[] = {
{ KEY_BACKSPACE, RETROK_BACKSPACE },
{ KEY_TAB, RETROK_TAB },