Skip to content

Commit 60ae003

Browse files
committed
Renamed linux folder to lin because it seems better, still doubtful it will ever work.
1 parent 9ed7466 commit 60ae003

File tree

12 files changed

+23
-8
lines changed

12 files changed

+23
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/cmake-build-debug
44
/cmake-build-release
55
/cmake-build-relwithdebinfo
6-
/src/linux/linux_test
6+
/src/lin/linux_test

.idea/editor.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/split-loaf.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ else()
2929
add_executable(split-loaf
3030
src/app/main.cpp
3131
src/core/Platform.cpp
32-
src/linux/LinuxBackend.cpp
33-
src/linux/LinuxHooks.cpp
32+
src/lin/LinuxBackend.cpp
33+
src/lin/LinuxHooks.cpp
3434
src/core/Backend.h
35-
src/linux/linux_test.c
35+
src/lin/linux_test.c
36+
src/lin/linux_test.h
3637
)
3738
endif()

src/app/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ extern int RunWindowsApp ( );
66
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) {
77
return RunWindowsApp(); // Call the main start function from WinApp.cpp.
88
}
9+
910
#else // For other operating systems just return 0 as they haven't been implemented yet.
11+
1012
int main ( ) {
11-
return 0;
13+
return linux_main();
1214
}
1315
#endif
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <linux/uinput.h>
33
#include <unistd.h>
44
#include <fcntl.h>
5+
#include <stdio.h>
56

67

78
void emit (int fd, int type, int code, int val) {
@@ -16,7 +17,9 @@ void emit (int fd, int type, int code, int val) {
1617
write(fd, & ie, sizeof(ie));
1718
}
1819

19-
int linux_main (void) {
20+
int linux_main ( ) {
21+
22+
printf("TEST LINUX");
2023
struct uinput_setup usetup;
2124

2225
int fd = open("/dev/uinput", O_WRONLY | O_NONBLOCK);

0 commit comments

Comments
 (0)