From f1a703f3380cd4193cb46ea1513b4a034b59fb7f Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Thu, 17 Sep 2009 17:19:09 -0700 Subject: [PATCH] Fix the skins to do proper dpad rotation in landscape mode. --- emulator/skins/HVGA/layout | 10 ++++++++-- emulator/skins/QVGA/layout | 3 +++ emulator/skins/WQVGA432/layout | 2 ++ emulator/skins/WVGA800/layout | 2 ++ emulator/skins/WVGA854/layout | 2 ++ 5 files changed, 17 insertions(+), 2 deletions(-) diff --git a/emulator/skins/HVGA/layout b/emulator/skins/HVGA/layout index 7117824d2..cc82ddeae 100644 --- a/emulator/skins/HVGA/layout +++ b/emulator/skins/HVGA/layout @@ -18,7 +18,7 @@ parts { y 0 } } - + controls { background { image controls.png @@ -357,7 +357,7 @@ layouts { height 534 color 0xe0e0e0 event EV_SW:0:1 - + part1 { name portrait x 0 @@ -394,6 +394,12 @@ layouts { color 0xe0e0e0 event EV_SW:0:0 + # the framework _always_ assume that the DPad + # has been physically rotated in landscape mode. + # however, with this skin, this is not the case + # + dpad-rotation 3 + part1 { name portrait x 800 diff --git a/emulator/skins/QVGA/layout b/emulator/skins/QVGA/layout index f98e7bd48..96f213388 100644 --- a/emulator/skins/QVGA/layout +++ b/emulator/skins/QVGA/layout @@ -393,6 +393,9 @@ layouts { color 0xe0e0e0 event EV_SW:0:0 + dpad-rotation 3 + + part1 { name portrait x 800 diff --git a/emulator/skins/WQVGA432/layout b/emulator/skins/WQVGA432/layout index 7e52b5320..006e955d3 100644 --- a/emulator/skins/WQVGA432/layout +++ b/emulator/skins/WQVGA432/layout @@ -393,6 +393,8 @@ layouts { color 0xe0e0e0 event EV_SW:0:0 + dpad-rotation 3 + part1 { name portrait x 800 diff --git a/emulator/skins/WVGA800/layout b/emulator/skins/WVGA800/layout index 6037ab8b5..63647f3e4 100644 --- a/emulator/skins/WVGA800/layout +++ b/emulator/skins/WVGA800/layout @@ -394,6 +394,8 @@ layouts { color 0xe0e0e0 event EV_SW:0:0 + dpad-rotation 3 + part1 { name portrait x 900 diff --git a/emulator/skins/WVGA854/layout b/emulator/skins/WVGA854/layout index ab0784d02..b086ddc2f 100644 --- a/emulator/skins/WVGA854/layout +++ b/emulator/skins/WVGA854/layout @@ -394,6 +394,8 @@ layouts { color 0xe0e0e0 event EV_SW:0:0 + dpad-rotation 3 + part1 { name portrait x 900