author | kergoth <kergoth> | 2003-04-18 21:54:43 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-04-18 21:54:43 (UTC) |
commit | d0852e67c15c5a973b7bc7f7bee238a6fd00dee6 (patch) (side-by-side diff) | |
tree | 68acc72ac204045b2492693ca668ece78e5f3a2c /libopie/odevice.cpp | |
parent | 1cdd9c974e621f6992ddc6dfccbc815baebd19ee (diff) | |
download | opie-d0852e67c15c5a973b7bc7f7bee238a6fd00dee6.zip opie-d0852e67c15c5a973b7bc7f7bee238a6fd00dee6.tar.gz opie-d0852e67c15c5a973b7bc7f7bee238a6fd00dee6.tar.bz2 |
Add rotation direction to ODevice, to ensure the default is appropriate for the hardware in question.
-rw-r--r-- | libopie/odevice.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 0e1c0dd..29c8ad2 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp @@ -69,2 +69,3 @@ public: Transformation m_rotation; + ODirection m_direction; @@ -256,2 +257,3 @@ ODevice::ODevice ( ) d-> m_rotation = Rot0; + d-> m_direction = CW; @@ -472,2 +474,10 @@ Transformation ODevice::rotation ( ) const /** + * @return the current rotation direction + */ +ODirection ODevice::direction ( ) const +{ + return d-> m_direction; +} + +/** * This plays an alarmSound |