diff -r e880629062dd -r e4a7b1cbe40c halservices/hal/inc/hal_data.h --- a/halservices/hal/inc/hal_data.h Wed May 05 05:11:16 2010 +0100 +++ b/halservices/hal/inc/hal_data.h Mon May 10 11:40:53 2010 +0100 @@ -1110,6 +1110,13 @@ */ ENumCpus, + /** + The orientation of the Digitiser. Usually mirrors device orientation. + + @see TDigitiserOrientation for allowed values + @capability WriteDeviceData needed to Set this attribute + */ + EDigitiserOrientation, /* * NOTE: @@ -1328,6 +1335,29 @@ EPowerBackupStatus_Good, }; + + /** + Describes the orientation of the screen digitiser, usually mirrors the + device orientation not necessarily the display rotation as this might be + limited to upright and left 90 only. The values in degrees measures + the anti-clockwise angle from the left edge of the digitiser from the + normal default position of the device. + + User-side clients can use attribute to inform the digitiser driver of the + digitiser orientation. The driver may then use this information to adjust + X.Y sampling depending on input pointer type. + + @see HALData::TAttribute + */ + enum TDigitiserOrientation + { + EDigitiserOrientation_default, ///< Driver using build-in default + EDigitiserOrientation_000, ///< Device normal 'make-call' position + EDigitiserOrientation_090, ///< Device rotated left 90 degrees + EDigitiserOrientation_180, ///< Device rotated 180 degrees + EDigitiserOrientation_270 ///< Device rotated right 90 degrees + }; + }; #endif