This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
forked from freebsd/freebsd-ports
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/sdl20: evdev fix attempt?? (ehh)
- Loading branch information
1 parent
b6b3229
commit fb963dd
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
devel/sdl20/files/patch-src_joystick_linux_SDL__sysjoystick.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/joystick/linux/SDL_sysjoystick.c.orig 2020-03-09 22:15:34 UTC | ||
+++ src/joystick/linux/SDL_sysjoystick.c | ||
@@ -26,6 +26,8 @@ | ||
#error SDL now requires a Linux 2.4+ kernel with /dev/input/event support. | ||
#endif | ||
|
||
+#define DEBUG_INPUT_EVENTS 1 | ||
+#define DEBUG_JOYSTICK 1 | ||
/* This is the Linux implementation of the SDL joystick API */ | ||
|
||
#include <sys/stat.h> |
fb963dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it goes something like this:
fb963dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shkhln oh, it always prefers directly using USB and I have to disable USB HID to make it use evdev? hmm
fb963dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it simply doesn't build. I didn't pay much attention to it, to be honest. There might or might not be some way to enable both backends.
fb963dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is a case of name collision, both backends are named SDL_sysjoystick.c.
fb963dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file names are not meaningful in C, that's fine
fb963dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…except when they are being compiled to objs with the same path.
fb963dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol, a good build system (i.e. meson) would not put them in the same directory
.. but this uses autoconf stuff