Skip to content

Commit 3a2d0f4

Browse files
committed
Update HYTEMouseMatController to compile on FreeBSD
This change includes the libusb implementation files of HYTEMouseMatController as sources when compiling on FreeBSD. Without this change, we see `error: unknown type name 'HYTEMousematController'`.
1 parent 8af2461 commit 3a2d0f4

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Controllers/HYTEMousematController/HYTEMousematController_Linux/HYTEMousematControllerDetect_Linux.cpp renamed to Controllers/HYTEMousematController/HYTEMousematController_FreeBSD_Linux/HYTEMousematControllerDetect_FreeBSD_Linux.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*---------------------------------------------------------*\
2-
| HYTEMousematControllerDetect_Linux.cpp |
2+
| HYTEMousematControllerDetect_FreeBSD_Linux.cpp |
33
| |
44
| Detector for HYTE mousemat (libusb implementation for |
5-
| Linux) |
5+
| FreeBSD / Linux) |
66
| |
77
| Adam Honse ([email protected]) 18 Jul 2023 |
88
| |

Controllers/HYTEMousematController/HYTEMousematController_Linux/HYTEMousematController_Linux.cpp renamed to Controllers/HYTEMousematController/HYTEMousematController_FreeBSD_Linux/HYTEMousematController_FreeBSD_Linux.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*---------------------------------------------------------*\
2-
| HYTEMousematController_Linux.cpp |
2+
| HYTEMousematController_FreeBSD_Linux.cpp |
33
| |
44
| Driver for HYTE mousemat (libusb implementation for |
5-
| Linux) |
5+
| FreeBSD / Linux) |
66
| |
77
| Adam Honse ([email protected]) 18 Jul 2023 |
88
| |
@@ -13,7 +13,7 @@
1313
#include <cstring>
1414
#include <iomanip>
1515
#include <sstream>
16-
#include "HYTEMousematController_Linux.h"
16+
#include "HYTEMousematController_FreeBSD_Linux.h"
1717

1818
HYTEMousematController::HYTEMousematController(libusb_device_handle* dev_handle, std::string dev_name)
1919
{

Controllers/HYTEMousematController/HYTEMousematController_Linux/HYTEMousematController_Linux.h renamed to Controllers/HYTEMousematController/HYTEMousematController_FreeBSD_Linux/HYTEMousematController_FreeBSD_Linux.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*---------------------------------------------------------*\
2-
| HYTEMousematController_Linux.h |
2+
| HYTEMousematController_FreeBSD_Linux.h |
33
| |
44
| Driver for HYTE mousemat (libusb implementation for |
5-
| Linux) |
5+
| FreeBSD / Linux) |
66
| |
77
| Adam Honse ([email protected]) 18 Jul 2023 |
88
| |

Controllers/HYTEMousematController/RGBController_HYTEMousemat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#include "HYTEMousematController_Windows_MacOS.h"
1818
#endif
1919

20-
#ifdef __linux__
21-
#include "HYTEMousematController_Linux.h"
20+
#if defined(__FreeBSD__) || defined(__linux__)
21+
#include "HYTEMousematController_FreeBSD_Linux.h"
2222
#endif
2323

2424

0 commit comments

Comments
 (0)