Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Configuration

OEMs can specify whether a display is touch-enabled in the displaysettings.ini file, and specify whether a display supports rotation in the device pack.

Enabling touch

The displaysettings.ini file indicates whether the displays are touch-enabled.

The displaysettings.ini file contains an IsTouchCapable entry for each of the four possible displays. IsTouchCapable is set to 0 if the display is not touch-enabled, and set to 1 if the display is touch-enabled. The default value for each display is 0, as shown in the following displaysettings.ini example:

[010127d4]
IsTouchCapable=0

[010127d5]
IsTouchCapable=0

[010127d6]
IsTouchCapable=0

[010127d7]
IsTouchCapable=0

The displaysettings.ini file is in the platform\brewmp\system\brewcore\src\OEM directory.

Enabling rotation in a device pack

A device pack is a collection of files that provide information about a specific device, and its features and functionality. A device pack can contain a key for each display that specifies which angles of rotation are supported. The keys are:

  • IDS_DD_LCD_ROTATION_SUPPORTED
  • IDS_DD_LCD2_ROTATION_SUPPORTED
  • IDS_DD_LCD3_ROTATION_SUPPORTED
  • IDS_DD_LCD4_ROTATION_SUPPORTED

The list of values for each key specifies whether the display supports rotation to 0, 90, 180, or 270 degrees. In the following example, from DeviceRef.dsd, the display supports rotation to 0 and 180 degrees:


    1,0,1,0

The DeviceRef.dsd file is in the platform\brewmp\system\brewcore\tests\tools\reference directory.