summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-05-23 20:39:17 (UTC)
committer mickeyl <mickeyl>2003-05-23 20:39:17 (UTC)
commit0c4b5288ccd4bcd1668816a0c4e12ce0a76b4e6e (patch) (side-by-side diff)
treed3ca4e58beec5121ea2f7c02df1ac689bdb06be3
parent165a62b3ca9cc8e2c3c66845f465a38413fa60d9 (diff)
downloadopie-0c4b5288ccd4bcd1668816a0c4e12ce0a76b4e6e.zip
opie-0c4b5288ccd4bcd1668816a0c4e12ce0a76b4e6e.tar.gz
opie-0c4b5288ccd4bcd1668816a0c4e12ce0a76b4e6e.tar.bz2
fix default rotation and direction for SIMpad
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie/odevice.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp
index 02f13b5..2873407 100644
--- a/libopie/odevice.cpp
+++ b/libopie/odevice.cpp
@@ -1504,25 +1504,28 @@ void SIMpad::init ( )
d-> m_vendor = Vendor_SIEMENS;
QFile f ( "/proc/hal/model" );
//TODO Implement model checking
//FIXME For now we assume an SL4
d-> m_modelstr = "SL4";
d-> m_model = Model_SIMpad_SL4;
switch ( d-> m_model ) {
default:
- d-> m_rotation = Rot270;
+ d-> m_rotation = Rot0;
+ d-> m_direction = CCW;
+ d-> m_holdtime = 1000; // 1000ms
+
break;
}
f. setName ( "/etc/familiar-version" );
if ( f. open ( IO_ReadOnly )) {
d-> m_systemstr = "Familiar";
d-> m_system = System_Familiar;
QTextStream ts ( &f );
d-> m_sysverstr = ts. readLine ( ). mid ( 10 );
f. close ( );