pbatard/AltInput — pull request #1 by enodatio (2014-09-24 14:57:21+00:00)
Title: Device List when no controller found and enumeration optimisations

I made some changes to give better feedback when devices/ini files are not found and to make it clear to me whether it was directx not enumerating the device or altinput not finding a config match. Also a test to see if the ini file is found.

A few internal members were needed as flight gives feedback to the user through a screen message but the information is collected by config.

Also reordered the config parseinputs() loops to iterate on directinput.GetDevices(..) rather than looping the config input1... inputx as this allows earlier termination in the event of a match and doesn't scan the file 128 times if there are no connected controllers. Should be much more efficient in most common cases and makes collecting the list of connected controllers (FoundDevices) cleaner.