Commit Graph

122 Commits

Author SHA1 Message Date
radius
916190e683 cleaner approach to reduce OSD spam 2015-08-01 00:07:28 -05:00
radius
801ad5c4ff reduce OSD spam 2015-07-31 23:49:38 -05:00
radius
6fbfc27a1f reduce OSD spam 2015-07-31 23:40:30 -05:00
radius
65081a0f9d reduce OSD spam 2015-07-31 23:09:25 -05:00
fr500
8e7cccb92d fix autoconfig, it was matching the last profile when no match was found 2015-07-23 00:38:31 -04:00
fr500
ca682d38eb better shield portable hack 2015-07-16 03:22:28 -04:00
twinaphex
5ac2ac62a3 Add dot to message end 2015-07-12 21:55:21 +02:00
radius
a480ad285b simplify the OSD message a bit more 2015-07-12 14:28:39 -05:00
Twinaphex
1ff9f89e7d Merge pull request #1952 from fr500/master
Proposals
2015-07-12 21:13:01 +02:00
radius
26b7ccead9 add a display_name field if available so the user can know which autoconf was used 2015-07-12 13:45:17 -05:00
twinaphex
bbc63f7e99 Fix CXX_BUILD 2015-07-12 08:08:27 +02:00
radius
88c4b2415d print osd messages on save 2015-07-10 23:13:37 -05:00
radius
da7a75f0fb cleanup some duplicate code and make it prefer the drivername subdir if it exists 2015-07-10 22:56:44 -05:00
radius
63ce5ee4c0 make the first match work too 2015-07-10 22:36:28 -05:00
twinaphex
b501e19dc4 input_autodetect.c - cleanup 2015-07-10 09:15:55 +02:00
twinaphex
5e634a48ce (input_autodetect.c) Some C89/C90 build fixes 2015-07-10 09:06:00 +02:00
twinaphex
a2c1a3e82b Buildfix 2015-07-10 07:16:21 +02:00
twinaphex
feb661754b Make it look at the joypad driver's name for subdirectory instead of
the input driver's name
2015-07-10 07:05:36 +02:00
twinaphex
84066d569c Put #if 0 around unused function 2015-07-10 06:59:14 +02:00
radius
7b45800ff9 make it look in the top level directory first, if no profiles look in the driver name subdir 2015-07-09 23:51:39 -05:00
radius
15a3aa134a make it look under autoconf\drivername 2015-07-09 23:12:35 -05:00
radius
2f26eac396 declare variables on top 2015-07-09 22:54:49 -05:00
radius
cec1f3408f declare variables on top 2015-07-09 22:52:52 -05:00
radius
9d268aba54 refactor input autoconfiguration to use a score system 2015-07-09 22:46:28 -05:00
Toad King
d0866995bd set back button to menu toggle if not set through autoconf 2015-07-02 21:48:06 -05:00
Alcaro
4ca6c2398c More C89 cleanups, part 3 2015-06-26 18:35:52 +02:00
twinaphex
f85965925c (Input) Cleanups 2015-06-12 23:52:52 +02:00
twinaphex
1a5e16ff99 Create input_config_autoconfigure_disconnect 2015-06-03 18:55:04 +02:00
Twinaphex
1529620c66 Revert "improve autodetection of input gamepads" 2015-05-08 17:25:55 +02:00
pamapa
ff286a9579 make sure the best configuration file wins, if there is more than one,
because the name is not unique. We look as long as we have a perfect match,
if not the latest config file which matches the name will win
2015-05-08 17:01:07 +02:00
radius
1b5f09a493 make autoconfig keep searching for an exact match even if a partial match has been found 2015-04-30 16:28:07 -05:00
Christopher J. Gilbert
cf2623a65a Added check to make sure ident was not an empty string.
Added check to make sure ident was not an empty string.

This commit is to fix a bug related to having a autoconfig.cfg file without an ident.
Currently, there are none in the repository that fit this condition, which is why the bug was never triggered in testing. 

This checks to make sure the ident loaded from the config file actually has a value associated with it.
Without this check, the if() statement will always return true, because an empty string is always within another string.
2015-04-21 23:06:21 -04:00
Christopher J. Gilbert
f1186ff01c Autoconfigure - Change equals to starts with ident
This allows for Bluetooth PS3 controllers (and other bluetooth controllers) to be automatically detected.

In the input_try_autoconfigure_joypad_from_conf function, there is a string comparision between the input's name "params->name" and the configuration's name "ident".  Specifically on Bluetooth controllers, the uuid is appended to the end of the name.  
This enhancement will change the checking for name match from an equals comparision, to a startswith.
2015-04-21 03:24:19 -04:00
twinaphex
0057510caf (libusb) Add disconnect message, change "Joypad" terminology to
'Device'
2015-04-14 05:36:43 +02:00
twinaphex
7fc95a1726 (input_autodetect.c) Move enum to top 2015-04-03 01:22:55 +02:00
Twinaphex
34439fc432 (input_autodetect.c) Add AUTODETECT_MATCH_* rule 2015-04-01 02:55:30 +02:00
twinaphex
7ac7b15718 (input_autodetect.c) Some fixes 2015-03-28 22:20:05 +01:00
twinaphex
765e9c0361 Return an unsigned value that indicates which values were found 2015-03-27 18:50:40 +01:00
twinaphex
9923e6a021 (input_autodetect.c) Further cleanups 2015-03-27 18:05:43 +01:00
twinaphex
f88e62b3d2 Create input_autoconfigure_joypad_from_conf_internal 2015-03-27 18:02:21 +01:00
twinaphex
782f366131 Cleanup comments 2015-03-27 17:55:00 +01:00
twinaphex
54f2d61809 input_autodetect.c - don't need runloop.h header 2015-03-27 17:53:06 +01:00
twinaphex
3985497552 Small cleanup 2015-03-27 17:48:27 +01:00
twinaphex
948e9a1888 (input_autodetect) Cleanups pt. 5 2015-03-27 17:47:15 +01:00
twinaphex
6917982686 Cleanup input_try_autoconfig_joypad 2015-03-27 17:39:11 +01:00
twinaphex
bf0693fcb0 (input_autodetect.c ) Cleanups pt. 4 2015-03-27 17:34:09 +01:00
twinaphex
c5ece757d8 (input_autodetect.c) Cleanups pt. 3 2015-03-27 17:31:59 +01:00
twinaphex
57a1f6d9a0 Cleanups 2015-03-27 17:27:21 +01:00
twinaphex
14270babe5 (input_autodetect.c) Cleanups pt. 2 2015-03-27 17:10:09 +01:00
twinaphex
28faf469a0 Cleanups 2015-03-27 17:02:55 +01:00
twinaphex
226c6ff41a Simplify input_autodetect 2015-03-27 16:57:58 +01:00
twinaphex
e996d5d51f Updates 2015-03-20 21:22:38 +01:00
twinaphex
00239a30d6 Create wrapper functions for passing a message to the runloop's
message queue
2015-03-15 02:47:23 +01:00
twinaphex
795ef467ac Move msg_queue and nbio/http to runloop struct 2015-03-07 13:01:41 +01:00
twinaphex
b86022ed15 input/keyboard_line.c - Document 2015-01-12 03:13:03 +01:00
twinaphex
a8260a450f inut_autodetect.c - declare variables at top of function 2015-01-10 00:06:49 +01:00
twinaphex
99c9afa5cd Update PATH_MAX to PATH_MAX_LENGTH 2015-01-09 18:04:29 +01:00
twinaphex
25536735a8 Build in autoconfig now conditionally if only HAVE_BUILTIN_AUTOCONFIG
is defined
2015-01-09 01:10:51 +01:00
twinaphex
453321c50b Start updating headers 2015-01-07 17:46:50 +01:00
twinaphex
7a456c6c3a Rename MAX_PLAYERS to MAX_USERS 2015-01-05 01:58:00 +01:00
twinaphex
82f6c57966 Add new option 'Show Autoconfig Descriptor Labels' for more
comprehensible button labels per joypad - needs to be added per
autoconfig file
2014-12-16 06:21:18 +01:00
CautiousAlbino
cead63c83d Fix nasty breakage when joypad index >= MAX_PLAYERS.
No bounds checking and joypad index is apparently now unsigned so old
"disabled" values in config will now overflow instead ...
2014-12-15 14:10:07 +01:00
twinaphex
174d011bed Move dir_list to SDK 2014-10-22 01:13:05 +02:00
twinaphex
00115d1ebb Backport Lioncash's changes - https://github.com/libretro/RetroArch/pull/1170 2014-10-21 02:28:10 +02:00
Twinaphex
c6a94593cf (Apple) Build fixes 2014-10-20 21:52:33 +02:00
twinaphex
42bb37816e Take file_path.h include out of file.h 2014-10-20 21:51:04 +02:00
twinaphex
faeca01e7a Change local index variables 2014-10-20 20:31:00 +02:00
Twinaphex
27c14755a0 input_autodetect.c - Fix 'declaration shadows a global variable' warning 2014-10-14 18:31:30 +02:00
twinaphex
cd4a2d43a8 (input_autodetect.c) Silence potential uninitialized variable warnings 2014-10-01 15:14:26 +02:00
twinaphex
ec9a217090 Change VID/PID passing to autodetect function - now int32_t
values
2014-09-30 20:35:58 +02:00
twinaphex
aea679456d (Input autodetect) Start setting up input autodetect so that it
can look at matching VID/PIDs
2014-09-30 18:18:02 +02:00
twinaphex
d43b9082e7 Move input_autodetect code to input_autodetect.c 2014-09-30 17:48:31 +02:00