summaryrefslogtreecommitdiff
path: root/handle_devices.h
diff options
context:
space:
mode:
authorClay Smith <claysmith158@gmail.com>2023-01-30 22:08:33 -0600
committerClay Smith <claysmith158@gmail.com>2023-01-30 22:08:33 -0600
commitf2bea22f979015b439f0f9347f2fad8c7babc481 (patch)
treede9c9c811f9f8cff7dc2e5b6313e19789d68fa76 /handle_devices.h
parent2548e88a53e9a4cebab8ca77eb696ae1e85aadb9 (diff)
refactored by adding a seperate file and functions to reduce duplication
Diffstat (limited to 'handle_devices.h')
-rw-r--r--handle_devices.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/handle_devices.h b/handle_devices.h
new file mode 100644
index 0000000..e0d0471
--- /dev/null
+++ b/handle_devices.h
@@ -0,0 +1,18 @@
+#ifndef HANDLE_DEVICES_H
+#define HANDLE_DEVICES_H
+
+void open_wii(int* device_fptr_array, uint64_t* connected_controllers);
+
+void open_ps4_bt(int* device_fptr_array, uint64_t* connected_controllers);
+
+void open_ps4_wired(int* device_fptr_array, uint64_t* connected_controllers);
+
+void open_steam(int* device_fptr_array, uint64_t* connected_controllers);
+
+void open_xbox_360(int* device_fptr_array, uint64_t* connected_controllers);
+
+void close_unneeded_files(int num_exceptions, int controller_event_fptrs[], ...);
+
+void print_one_event(int controller_event_fptrs[], int index, int event_number);
+
+#endif