event input system: be a little more helpful on errors
This commit is contained in:
parent
a0e31b5565
commit
62d0d2ab06
1 changed files with 3 additions and 2 deletions
|
@ -96,6 +96,7 @@ bool FGDeviceConfigurationMap::hasConfiguration(const std::string& name) const
|
||||||
|
|
||||||
void FGDeviceConfigurationMap::scan_dir(const SGPath & path)
|
void FGDeviceConfigurationMap::scan_dir(const SGPath & path)
|
||||||
{
|
{
|
||||||
|
SG_LOG(SG_INPUT, SG_DEBUG, "Scanning " << path << " for input devices");
|
||||||
if (!path.exists())
|
if (!path.exists())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -138,12 +139,12 @@ void FGDeviceConfigurationMap::readCachedData(const SGPath& path)
|
||||||
|
|
||||||
void FGDeviceConfigurationMap::refreshCacheForFile(const SGPath& path)
|
void FGDeviceConfigurationMap::refreshCacheForFile(const SGPath& path)
|
||||||
{
|
{
|
||||||
SG_LOG(SG_INPUT, SG_DEBUG, "Reading joystick file " << path.str());
|
SG_LOG(SG_INPUT, SG_DEBUG, "Reading device file " << path.str());
|
||||||
SGPropertyNode_ptr n(new SGPropertyNode);
|
SGPropertyNode_ptr n(new SGPropertyNode);
|
||||||
try {
|
try {
|
||||||
readProperties(path.str(), n);
|
readProperties(path.str(), n);
|
||||||
} catch (sg_exception&) {
|
} catch (sg_exception&) {
|
||||||
SG_LOG(SG_INPUT, SG_WARN, "parse failure reading:" << path);
|
SG_LOG(SG_INPUT, SG_ALERT, "parse failure reading:" << path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue