Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7405 from zackhow/touch-profiles
Android: Portrait Emulation Enhancements
- Loading branch information
Showing
8 changed files
with
516 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
411 changes: 349 additions & 62 deletions
411
Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/overlay/InputOverlay.java
Large diffs are not rendered by default.
Oops, something went wrong.
47 changes: 47 additions & 0 deletions
47
Source/Android/app/src/main/res/layout-port/fragment_emulation.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:keepScreenOn="true" | ||
tools:context="org.dolphinemu.dolphinemu.fragments.EmulationFragment"> | ||
|
||
<!-- Places the emulation surface to the top half of the screen --> | ||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" | ||
android:baselineAligned="false"> | ||
<!-- This is what everything is rendered to during emulation --> | ||
<SurfaceView | ||
android:id="@+id/surface_emulation" | ||
android:layout_height="0dp" | ||
android:layout_width="wrap_content" | ||
android:layout_weight="1" | ||
android:focusable="false" | ||
android:focusableInTouchMode="false"/> | ||
<RelativeLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="0dp" | ||
android:layout_weight="1"/> | ||
</LinearLayout> | ||
<!-- This is the onscreen input overlay --> | ||
<org.dolphinemu.dolphinemu.overlay.InputOverlay | ||
android:id="@+id/surface_input_overlay" | ||
android:layout_height="match_parent" | ||
android:layout_width="match_parent" | ||
android:focusable="true" | ||
android:focusableInTouchMode="true"/> | ||
|
||
<Button | ||
android:id="@+id/done_control_config" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center" | ||
android:padding="@dimen/spacing_small" | ||
android:background="@color/dolphin_blue" | ||
android:textColor="@color/lb_tv_white" | ||
android:text="@string/emulation_done" | ||
android:visibility="gone"/> | ||
|
||
</FrameLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters