From cde931654d1966be6989e6c8f3cfacb23e6822a2 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Wed, 31 Aug 2005 10:21:12 +0000 Subject: - add support for the new Switches type in the Linux Input System (coming with 2.6.14) - use the new Switches support to rewrite the hinge sensor handling on Zaurus models w/ 2.6 - add Switches support to SysInfo, OInputSystem, oinputsystemdemo --- (limited to 'examples') 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 @@ -63,6 +63,8 @@ int main( int argc, char** argv ) 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: " ); @@ -93,7 +95,9 @@ int main( int argc, char** argv ) 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; } } @@ -331,4 +335,4 @@ hell: exit( EXIT_FAILURE ); } -#endif \ No newline at end of file +#endif -- cgit v0.9.0.2