Changeset View
Changeset View
Standalone View
Standalone View
multimedia/kodi-devel/files/patch-evdev
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- xbmc/platform/linux/input/LinuxInputDevices.cpp.orig 2017-12-17 12:10:14 UTC | |||||
+++ xbmc/platform/linux/input/LinuxInputDevices.cpp | |||||
@@ -30,6 +30,9 @@ | |||||
#include "system.h" | |||||
#if defined(HAS_LINUX_EVENTS) | |||||
+#ifdef TARGET_FREEBSD | |||||
+#include <dev/evdev/input.h> | |||||
+#else | |||||
#include <linux/version.h> | |||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) | |||||
@@ -38,6 +41,7 @@ typedef unsigned long kernel_ulong_t; | |||||
#endif | |||||
#include <linux/input.h> | |||||
+#endif | |||||
#if defined(HAVE_LIBUDEV) | |||||
#include <libudev.h> | |||||
@@ -77,8 +81,10 @@ typedef unsigned long kernel_ulong_t; | |||||
#define XBMC_BUTTON_WHEELDOWN 5 | |||||
#endif | |||||
+#ifndef TARGET_FREEBSD | |||||
#include <linux/keyboard.h> | |||||
#include <linux/kd.h> | |||||
+#endif | |||||
#include <string.h> | |||||
#include <unistd.h> | |||||
@@ -352,6 +358,7 @@ XBMCKey CLinuxInputDevice::TranslateKey(unsigned short | |||||
int CLinuxInputDevice::KeyboardGetSymbol(unsigned short value) | |||||
{ | |||||
+#ifndef TARGET_FREEBSD | |||||
unsigned char type = KTYP(value); | |||||
unsigned char index = KVAL(value); | |||||
@@ -409,12 +416,16 @@ int CLinuxInputDevice::KeyboardGetSymbol(unsigned shor | |||||
break; | |||||
*/ | |||||
} | |||||
- | |||||
+#else | |||||
return XBMCK_UNKNOWN; | |||||
+#endif | |||||
} | |||||
unsigned short CLinuxInputDevice::KeyboardReadValue(unsigned char table, unsigned char index) | |||||
{ | |||||
+#ifdef TARGET_FREEBSD | |||||
+ return 0; | |||||
+#else | |||||
struct kbentry entry; | |||||
entry.kb_table = table; | |||||
@@ -429,6 +440,7 @@ unsigned short CLinuxInputDevice::KeyboardReadValue(un | |||||
} | |||||
return entry.kb_value; | |||||
+#endif | |||||
} | |||||
XBMCMod CLinuxInputDevice::UpdateModifiers(XBMC_Event& devt) | |||||
@@ -1371,6 +1383,9 @@ driver_open_device_error: | |||||
*/ | |||||
bool CLinuxInputDevice::GetKeymapEntry(KeymapEntry& entry) | |||||
{ | |||||
+#ifdef TARGET_FREEBSD | |||||
+ return false; | |||||
+#else | |||||
int code = entry.code; | |||||
unsigned short value; | |||||
//DFBInputDeviceKeyIdentifier identifier; | |||||
@@ -1421,6 +1436,7 @@ bool CLinuxInputDevice::GetKeymapEntry(KeymapEntry& en | |||||
entry.altShift = value; //KeyboardGetSymbol(code, value, LI_KEYLEVEL_ALT_SHIFT); | |||||
return true; | |||||
+#endif | |||||
} | |||||
/* | |||||
--- xbmc/windowing/wayland/InputProcessorPointer.cpp.orig 2017-12-17 12:10:14 UTC | |||||
+++ xbmc/windowing/wayland/InputProcessorPointer.cpp | |||||
@@ -22,7 +22,11 @@ | |||||
#include <cmath> | |||||
+#ifdef TARGET_FREEBSD | |||||
+#include <dev/evdev/input-event-codes.h> | |||||
+#else | |||||
#include <linux/input-event-codes.h> | |||||
+#endif | |||||
#include "input/MouseStat.h" | |||||
--- xbmc/windowing/wayland/WindowDecorator.cpp.orig 2017-12-17 12:10:14 UTC | |||||
+++ xbmc/windowing/wayland/WindowDecorator.cpp | |||||
@@ -25,7 +25,11 @@ | |||||
#include <cmath> | |||||
#include <vector> | |||||
+#ifdef TARGET_FREEBSD | |||||
+#include <dev/evdev/input-event-codes.h> | |||||
+#else | |||||
#include <linux/input-event-codes.h> | |||||
+#endif | |||||
#include "threads/SingleLock.h" | |||||
#include "utils/EndianSwap.h" |