mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
udev: support on FreeBSD via libepoll-shim/libudev-devd
This commit is contained in:
parent
a1c15b5362
commit
a838582b11
2
Makefile
2
Makefile
@ -32,6 +32,8 @@ DEFINES += -DGLOBAL_CONFIG_DIR='"$(GLOBAL_CONFIG_DIR)"'
|
||||
ifneq ($(findstring BSD,$(OS)),)
|
||||
CFLAGS += -DBSD
|
||||
LDFLAGS += -L/usr/local/lib
|
||||
UDEV_CFLAGS += -I/usr/local/include/libepoll-shim
|
||||
UDEV_LIBS += -lepoll-shim
|
||||
endif
|
||||
|
||||
ifneq ($(findstring DOS,$(OS)),)
|
||||
|
@ -14,7 +14,8 @@
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* TODO/FIXME - set this once the kqueue codepath is implemented and working properly */
|
||||
/* TODO/FIXME - set this once the kqueue codepath is implemented and working properly,
|
||||
* also remove libepoll-shim from the Makefile when that happens. */
|
||||
#if 1
|
||||
#define HAVE_EPOLL
|
||||
#else
|
||||
@ -46,7 +47,9 @@
|
||||
#include <sys/poll.h>
|
||||
|
||||
#include <libudev.h>
|
||||
#ifdef __linux__
|
||||
#include <linux/types.h>
|
||||
#endif
|
||||
#include <linux/input.h>
|
||||
#include <linux/kd.h>
|
||||
|
||||
@ -1204,7 +1207,9 @@ static void *udev_input_init(const char *joypad_driver)
|
||||
udev->joypad = input_joypad_init_driver(joypad_driver, udev);
|
||||
input_keymaps_init_keyboard_lut(rarch_key_map_linux);
|
||||
|
||||
#ifdef __linux__
|
||||
linux_terminal_disable_input();
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_X11
|
||||
RARCH_WARN("[udev]: Full-screen pointer won't be available.\n");
|
||||
@ -1299,7 +1304,11 @@ input_driver_t input_udev = {
|
||||
udev_input_get_capabilities,
|
||||
"udev",
|
||||
udev_input_grab_mouse,
|
||||
#ifdef __linux__
|
||||
linux_terminal_grab_stdin,
|
||||
#else
|
||||
NULL,
|
||||
#endif
|
||||
udev_input_set_rumble,
|
||||
udev_input_get_joypad_driver,
|
||||
NULL,
|
||||
|
@ -25,7 +25,9 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/poll.h>
|
||||
#include <libudev.h>
|
||||
#ifdef __linux__
|
||||
#include <linux/types.h>
|
||||
#endif
|
||||
#include <linux/input.h>
|
||||
|
||||
#include <retro_inline.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user