Skip to content

Commit

Permalink
fix warframe steamcontroller007 patch, update to latest git
Browse files Browse the repository at this point in the history
  • Loading branch information
GloriousEggroll committed Mar 9, 2020
1 parent d86a9ee commit 07e0bb1
Show file tree
Hide file tree
Showing 17 changed files with 3,076 additions and 928 deletions.
2 changes: 1 addition & 1 deletion FAudio

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
diff --git a/lsteamclient/steamclient_main.c b/lsteamclient/steamclient_main.c
index e0eac01..345e7cd 100644
--- a/lsteamclient/steamclient_main.c
+++ b/lsteamclient/steamclient_main.c
@@ -4,6 +4,7 @@
#include <dlfcn.h>
#include <limits.h>
#include <stdint.h>
+#include <fcntl.h>

#include "windef.h"
#include "winbase.h"
@@ -408,6 +409,17 @@ void *create_win_interface(const char *name, void *linux_side)
if (!linux_side)
return NULL;

+ int fd = open ("/dev/input/js0", O_RDONLY);
+
+ if(fd < 0)
+ {
+ if(!strcmp(name,"SteamController007") || !strcmp(name,"SteamInput001"))
+ {
+ TRACE("No input devices detected, disabling: %s\n", name);
+ return NULL;
+ }
+ }
+
EnterCriticalSection(&steamclient_cs);

LIST_FOR_EACH_ENTRY(e, &steamclient_interfaces, struct steamclient_interface, entry)

0 comments on commit 07e0bb1

Please sign in to comment.