Skip to content

Commit

Permalink
WebView: add disable preference for using joystick style d-pad
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Feb 16, 2022
1 parent 4b8514d commit 3ea804b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
import java.util.List;


/**
* A directional pad on the screen.
*
* TODO: Option to use joystick style d-pad. Currently setting "dpad_joy"
* is disabled in preferences manager.
*/
public class DPad {

private static DPad instance;
Expand Down
8 changes: 8 additions & 0 deletions android/app/src/main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,12 @@
android:summary="Show on-screen directional pad."
/>

<CheckBoxPreference
android:defaultValue="true"
android:key="dpad_joy"
android:title="Joystick Style D-Pad"
android:summary="Use a joystick style directional pad."
android:enabled="false"
/>

</PreferenceScreen>

0 comments on commit 3ea804b

Please sign in to comment.