From f2bea22f979015b439f0f9347f2fad8c7babc481 Mon Sep 17 00:00:00 2001 From: Clay Smith Date: Mon, 30 Jan 2023 22:08:33 -0600 Subject: refactored by adding a seperate file and functions to reduce duplication --- handle_devices.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 handle_devices.h (limited to 'handle_devices.h') 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 -- cgit v1.2.1