mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
device: fix incorrect features when printing InputDevice
This commit is contained in:
parent
eef2a93163
commit
66655aae85
@ -404,19 +404,19 @@ output(std::ostream &out) const {
|
|||||||
<< (_axes.size() != 1 ? 'e' : 'i') << 's';
|
<< (_axes.size() != 1 ? 'e' : 'i') << 's';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_features & (unsigned int)Feature::pointer) {
|
if (_features & (1 << (unsigned int)Feature::pointer)) {
|
||||||
out << ", pointer";
|
out << ", pointer";
|
||||||
}
|
}
|
||||||
if (_features & (unsigned int)Feature::keyboard) {
|
if (_features & (1 << (unsigned int)Feature::keyboard)) {
|
||||||
out << ", keyboard";
|
out << ", keyboard";
|
||||||
}
|
}
|
||||||
if (_features & (unsigned int)Feature::tracker) {
|
if (_features & (1 << (unsigned int)Feature::tracker)) {
|
||||||
out << ", tracker";
|
out << ", tracker";
|
||||||
}
|
}
|
||||||
if (_features & (unsigned int)Feature::vibration) {
|
if (_features & (1 << (unsigned int)Feature::vibration)) {
|
||||||
out << ", vibration";
|
out << ", vibration";
|
||||||
}
|
}
|
||||||
if (_features & (unsigned int)Feature::battery) {
|
if (_features & (1 << (unsigned int)Feature::battery)) {
|
||||||
out << ", battery";
|
out << ", battery";
|
||||||
|
|
||||||
if (_battery_data.level > 0 && _battery_data.max_level > 0) {
|
if (_battery_data.level > 0 && _battery_data.max_level > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user