-rw-r--r-- | examples/opiecore/oinputsystemdemo/oinputsystemdemo.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/opiecore/oinputsystemdemo/oinputsystemdemo.cpp b/examples/opiecore/oinputsystemdemo/oinputsystemdemo.cpp index 6c95048..b49df99 100644 --- a/examples/opiecore/oinputsystemdemo/oinputsystemdemo.cpp +++ b/examples/opiecore/oinputsystemdemo/oinputsystemdemo.cpp @@ -62,8 +62,10 @@ int main( int argc, char** argv ) features += QString( "\nAbsolute Axes: " ); if ( dev->hasFeature( OInputDevice::Absolute ) ) features += "[ x ]"; else features += "[ ]"; features += QString( "\nMiscellaneous: " ); if ( dev->hasFeature( OInputDevice::Miscellaneous ) ) features += "[ x ]"; else features += "[ ]"; + features += QString( "\nSwitches: " ); + if ( dev->hasFeature( OInputDevice::Switches ) ) features += "[ x ]"; else features += "[ ]"; features += QString( "\nLeds: " ); if ( dev->hasFeature( OInputDevice::Leds ) ) features += "[ x ]"; else features += "[ ]"; features += QString( "\nSound: " ); if ( dev->hasFeature( OInputDevice::Sound ) ) features += "[ x ]"; else features += "[ ]"; @@ -92,9 +94,11 @@ int main( int argc, char** argv ) odebug << "Left Mouse Button is being held." << oendl; else odebug << "Left Mouse Button is _not_ being held." << oendl; odebug << "Global key mask: " << dev->globalKeyMask() << oendl; - + odebug << "Global switch mask: " << dev->globalSwitchMask() << oendl; + + ++it; } } @@ -330,5 +334,5 @@ int main( int argc, char **argv ) hell: exit( EXIT_FAILURE ); } -#endif
\ No newline at end of file +#endif |