summaryrefslogtreecommitdiff
path: root/examples
Side-by-side diff
Diffstat (limited to 'examples') (more/less context) (ignore whitespace changes)
-rw-r--r--examples/opiecore/oinputsystemdemo/oinputsystemdemo.cpp8
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
@@ -65,2 +65,4 @@ int main( int argc, char** argv )
if ( dev->hasFeature( OInputDevice::Miscellaneous ) ) features += "[ x ]"; else features += "[ ]";
+ features += QString( "\nSwitches: " );
+ if ( dev->hasFeature( OInputDevice::Switches ) ) features += "[ x ]"; else features += "[ ]";
features += QString( "\nLeds: " );
@@ -95,3 +97,5 @@ int main( int argc, char** argv )
odebug << "Global key mask: " << dev->globalKeyMask() << oendl;
-
+ odebug << "Global switch mask: " << dev->globalSwitchMask() << oendl;
+
+
++it;
@@ -333,2 +337,2 @@ hell:
-#endif \ No newline at end of file
+#endif