Skip to content

Commit

Permalink
orientation fix for keyboard
Browse files Browse the repository at this point in the history
Change-Id: I0c5dce2587737b4e1b12955a962c0a2c54a5a740
  • Loading branch information
dhacker29 committed Jun 24, 2012
1 parent 2d25e91 commit 4804728
Show file tree
Hide file tree
Showing 4 changed files with 783 additions and 0 deletions.
3 changes: 3 additions & 0 deletions device_maserati.mk
Expand Up @@ -168,6 +168,9 @@ PRODUCT_COPY_FILES += \
device/motorola/maserati/prebuilt/etc/media_profiles.xml:system/etc/media_profiles.xml \
device/motorola/maserati/prebuilt/etc/vold.fstab:system/etc/vold.fstab \
device/motorola/maserati/prebuilt/etc/hijack-boot.zip:system/etc/hijack-boot.zip \
device/motorola/maserati/prebuilt/usr/idc/omap4-keypad.idc:system/usr/idc/omap4-keypad.idc \
device/motorola/maserati/prebuilt/usr/keychar/omap4-keypad.kcm:system/usr/keychar/omap4-keypad.kcm \
device/motorola/maserati/prebuilt/usr/keylayout/omap4-keypad.kl:system/usr/keylayout/omap4-keypad.kl \


# Phone settings
Expand Down
20 changes: 20 additions & 0 deletions prebuilt/usr/idc/omap4-keypad.idc
@@ -0,0 +1,20 @@
# This is an example input device configuration file for a built-in
# keyboard that has a DPad.

# The keyboard is internal because it is part of the device.
device.internal = 1

# The keyboard is the default built-in keyboard so it should be assigned
# an id of 0.
keyboard.builtIn = 1

# The keyboard includes a DPad which is mounted on the device. As the device
# is rotated the orientation of the DPad rotates along with it, so the DPad must
# be aware of the display orientation. This ensures that pressing 'up' on the
# DPad always means 'up' from the perspective of the user, even when the entire
# device has been rotated.
keyboard.orientationAware = 1

keyboard.layout = omap4-keypad
keyboard.characterMap = omap4-keypad

0 comments on commit 4804728

Please sign in to comment.