forked from mupen64plus-ae/mupen64plus-ae
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
front: Replaced InputMapPreference with InputMapActivity.
Controller enabled/disabled is persisted as its own boolean now, rather than being serialized with the input map. This is much more logical and easier to maintain in the long run. Fewer buttons/axes are mapped by default now, to minimize conflicts out of the box. They are - analog stick <-> AXIS_X and AXIS_Y - d-pad <-> KEY_DPAD_* (no AXIS_HAT_*, conflicts w/ Nyko PlayPad) - start, R, L buttons to their virtually universal keycodes A TogglePreference was implemented. Basically a fancier version of a checkbox preference. Besides the slider/toggle widget, the main difference is that clicking on the list item in the preference menu does not do anything (checkbox preference it toggles the check state). This is so that you can handle the click in your own custom way, e.g. to launch an activity like InputMapActivity. To change widget state, you need to click on the widget itself. This imitates the "master on/ off switch" pattern used in the Android settings: http://developer.android.com/design/patterns/settings.html
- Loading branch information
1 parent
9c02855
commit 1b285a1
Showing
7 changed files
with
163 additions
and
466 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
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
Oops, something went wrong.