Fix a clang warning.
This commit is contained in:
parent
c07ce6d9bc
commit
70c4972f48
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ AxisElement::AxisElement(CFDictionaryRef element, long page, long usage) :
|
|||
|
||||
name = ((isRelative == true) ? "rel-" : "abs-") + name;
|
||||
|
||||
center = min + (max - abs(min)) * 0.5;
|
||||
center = min + (max - std::abs(min)) * 0.5;
|
||||
SG_LOG(SG_INPUT, SG_DEBUG, "HID Axis Element; " << name << " min: " << min << " max:" << max << " center: " << center);
|
||||
SG_LOG(SG_INPUT, SG_DEBUG, "isRelative=" << isRelative << ", isWrapping=" << isWrapping << ", isNonLinear=" << isNonLinear);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue