Commit Graph

184 Commits

Author SHA1 Message Date
Brad Parker 2dd64d9c11 Initial blissbox support, requires firmware 2.0. Currently limited to platforms with libusb support. 2017-11-28 18:25:12 -05:00
Brad Parker 7a6d2cb5e6 set list to NULL after free in case autoconfig directory is empty 2017-09-30 19:03:39 -04:00
twinaphex de6b1bcbf0 Fix another Coverity error 2017-09-30 17:11:51 +02:00
twinaphex 73d1539bb0 Fix another Coverity error 2017-09-30 17:08:42 +02:00
twinaphex 2a8b74eeb9 Fix some Coverity errors 2017-09-30 16:52:41 +02:00
twinaphex f61b9e1747 Cleanup 2017-09-30 08:24:01 +02:00
twinaphex 063343e538 Simplify this 2017-09-30 07:29:19 +02:00
Brad Parker c856a36a58 more null checks 2017-09-30 01:18:40 -04:00
twinaphex 00ea9be8fc Be safer 2017-09-30 06:38:53 +02:00
twinaphex ff926439ac Fix this up 2017-09-30 06:29:07 +02:00
twinaphex 5fd05c6b56 There were some unused variables 2017-09-30 06:25:41 +02:00
twinaphex f323168251 Simplify conditionals 2017-09-30 06:08:09 +02:00
twinaphex 819e3fb02a Initialize struct 2017-09-29 17:06:38 +02:00
Twinaphex f713a30705 Update task_autodetect.c 2017-09-29 15:08:09 +02:00
twinaphex 5951bed07d Make stdin an option 2017-09-29 06:16:35 +02:00
twinaphex fcf6228dce Turn into char pointer array 2017-09-27 20:11:44 +02:00
twinaphex b79f95668b Turn it into char pointer array 2017-09-27 20:08:37 +02:00
twinaphex e16371b8a5 Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
radius 3a3d9cd41e if swap override is not specified it should be false 2017-08-04 01:37:16 -05:00
radius 0a7968761f improve logging 2017-06-30 20:05:30 -05:00
twinaphex 1bf0175da4 Try to prevent string message leaking in tasks 2017-05-16 04:50:20 +02:00
twinaphex 126a5bf121 Use string_is_equal_fast/string_is_not_equal_fast 2017-05-16 04:00:37 +02:00
twinaphex 80d9d1f143 Rewrite task_queue 2017-05-14 20:43:48 +02:00
twinaphex 6dd3a84bc9 Cleanup 2017-05-13 23:41:13 +02:00
twinaphex 484fff5e28 Cleanups 2017-05-13 22:30:45 +02:00
twinaphex 2906bec7a8 Create input_driver_get_uint 2017-05-11 07:36:21 +02:00
twinaphex 36375cecf8 input_swap_override - Get rid of dependency on settings 2017-05-06 06:01:15 +02:00
twinaphex 75a5af26c6 Revert "(task_autodetect.c) Set input_swap_override later on"
This reverts commit 582573f324.
2017-05-06 05:42:11 +02:00
twinaphex 582573f324 (task_autodetect.c) Set input_swap_override later on 2017-05-06 05:32:46 +02:00
twinaphex 969403fadb Header include cleanups 2017-04-29 13:20:50 +02:00
twinaphex e6ab06a701 Move path variables 2017-04-29 00:39:29 +02:00
twinaphex 05e4ec733e Move uint variables 2017-04-28 21:03:04 +02:00
twinaphex ed53be7c81 Move all bool settings 2017-04-28 14:11:34 +02:00
twinaphex 0c6ba894fd task_autodetect.c - cleanups 2017-04-26 18:48:28 +02:00
twinaphex 3087ceb482 Don't go through all these slow wrapper functions 2017-04-25 20:47:21 +02:00
twinaphex f4e5f896a2 Move input.device_name_index to task_autodetect and move it
outside of settings struct
2017-04-25 16:57:44 +02:00
twinaphex c871faa1f5 Move pid/vid arrays out of settings struct and move them
to input_config
2017-04-25 16:49:54 +02:00
twinaphex acf3b22fd3 Go through wrapper functions 2017-04-25 16:36:31 +02:00
twinaphex 6ace8ce66a Rewrite autoconf_binds and move it to task_autodetect.c - take
it out of the settings struct
2017-04-25 16:33:30 +02:00
twinaphex f4b168f9b6 Call functions from task_autodetect.c 2017-04-25 15:53:30 +02:00
twinaphex 7b5b49a5e6 Move autoconfigured variables out of settings struct;
these values are not written back to the config file
2017-04-25 15:49:27 +02:00
twinaphex 15a8f0c485 Wrap some more settings manipulation 2017-04-25 15:31:32 +02:00
twinaphex f9bc2d3783 Use memcmp instead of string_is_equal where possible for
better performance
2017-04-21 22:47:15 +02:00
twinaphex 04223b464a Check for return value of config_get_bool 2017-04-20 21:52:29 +02:00
twinaphex d5821c7f61 Update logs 2017-04-18 05:42:49 +02:00
radius a759cd9a19 allow swapping ok/cancel via autoconf parameter 2017-04-16 16:59:05 -05:00
radius d236b2db58 try to override swap ok/cancel for remote controls 2017-04-16 16:51:54 -05:00
radius 0b2afde90b Partial match is never used and interferes with the fallback mechanism 2017-04-15 10:47:51 -05:00
Twinaphex b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
Pedro Ribeiro 6659c6af3a Fix dualshock 3 detection bug 2017-02-13 21:52:53 +00:00
Brad Parker 91ebcc0680 revert 6e969d0, but need to investigate if the original change to string_is_equal is valid 2017-02-13 15:37:34 -05:00
Brad Parker 6e969d0bc6 should be !string_is_equal 2017-02-13 15:12:04 -05:00
radius ee6d76e932 fix message 2017-02-07 00:12:30 -05:00
radius c9015aa9ba attempt autoconf fallback for android 2017-02-07 00:12:30 -05:00
twinaphex 96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex add7d26c3d Set device name for xinput/dinput even when autoconfig is
disabled
2017-01-13 04:40:44 +01:00
twinaphex f246cc7b40 (task_autodetect.c) Style nits 2017-01-09 11:45:04 +01:00
twinaphex be21e30230 task_autodetect.c - cleanup 2017-01-03 03:52:26 +01:00
twinaphex 03818dc780 Always set VID/PID/name for connect tasks 2017-01-02 07:47:38 +01:00
twinaphex 824ba64daa Set autoconfig directory for autodetect task 2017-01-02 05:33:29 +01:00
twinaphex d3470637ad Add max_users param to autoconfig_params_t 2016-12-31 07:54:38 +01:00
twinaphex 103042de96 Rewrite task_autodetect.c 2016-12-31 07:43:34 +01:00
Brad Parker 41f40acfc4 guard task struct read/writes across threads with a mutex, fixes several data races found by ThreadSanitizer and helgrind 2016-12-29 00:54:12 -05:00
twinaphex 3a581ba8b0 (task_autodetect.c) Solve some threading errors 2016-12-29 05:49:24 +01:00
twinaphex 7e43d9c469 Attempt to fix Coverity ID 158346 2016-12-21 01:45:19 +01:00
twinaphex 2153f3f011 Check if autodetect is enabled at beginning of connect task 2016-12-16 15:18:04 +01:00
twinaphex 209305f944 Connect task now sets PID/VID too 2016-12-16 14:02:11 +01:00
twinaphex d9def056e7 The 'connect' task now sets the device name upon completion 2016-12-16 12:33:56 +01:00
twinaphex 62f5b2d3c3 The disconnect task now clears the device name 2016-12-16 12:20:31 +01:00
twinaphex 1386476792 Cleanups 2016-12-04 05:53:44 +01:00
twinaphex 3dc944977c (task_autodetect.c) Fix memory leak 2016-12-04 05:50:50 +01:00
twinaphex 697760d580 Silence some warnings 2016-12-03 06:09:55 +01:00
Twinaphex 4c41c7a3d0 Fix for when a device is not able to be autoconfigured - properly finish
the task then
2016-12-01 23:03:09 +01:00
twinaphex 230d7105fd CXX_BUILD fix 2016-12-01 22:57:43 +01:00
twinaphex 22e1854b8c Get rid of runloop.h header include 2016-12-01 22:49:16 +01:00
twinaphex 24a689c274 Cleanup 2016-12-01 22:38:19 +01:00
twinaphex 82bea3ba9f Remove FIXME/TODO 2016-12-01 22:37:27 +01:00
twinaphex 3db866e5dc disconnect action is a task now too 2016-12-01 22:36:38 +01:00
twinaphex 4a894afc57 Don't make it a blocking task 2016-12-01 22:19:09 +01:00
twinaphex 6a2df4615b task_autodetect.c- style nits 2016-12-01 22:17:36 +01:00
twinaphex 305b2becbd input_autoconfigure_connect - now a task 2016-12-01 22:16:06 +01:00
twinaphex 25cc9446e8 Simplify input_autoconfigure_connect 2016-12-01 20:41:41 +01:00
twinaphex f1dd06db20 (task_autodetect.c) Remove header include 2016-12-01 20:39:42 +01:00
twinaphex d3c22cb0e4 Move input/input_autodetect.c to tasks/task_autodetect.c 2016-12-01 20:38:20 +01:00