Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile app #42

Open
wants to merge 58 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
618e906
Migrate to AndroidX
codebutler Nov 25, 2018
606673a
First implementation of touch inputs, currently attached to GameActiv…
Swordfish90 Sep 7, 2019
6e7bd1d
Add touch layout for Sega Genesis.
Swordfish90 Sep 7, 2019
4078e5f
Fix layout issue in GameBoyPad.
Swordfish90 Sep 7, 2019
9d860b9
Refactor GamePadView into BaseGamePad.
Swordfish90 Sep 7, 2019
888d361
Fix some klint issues.
Swordfish90 Sep 8, 2019
b041a18
Merge branch 'androidx' into mobile-app
Swordfish90 Sep 8, 2019
64e0fe5
First mobile app implementation. Currently only displays the list of …
Swordfish90 Sep 12, 2019
c3a7f31
Create a copy of GameActivity (TBD if needed) to mobile-app.
Swordfish90 Sep 13, 2019
2e2884c
Replace ram save with retro_serialize. Use gambatte instead of mgba f…
Swordfish90 Sep 13, 2019
1abddca
Fix lint issues.
Swordfish90 Sep 13, 2019
1aad489
Fill home screen with recent and favorite games.
Swordfish90 Sep 13, 2019
16cb4f3
Show library with systems instead of games.
Swordfish90 Sep 14, 2019
ef7bdd8
Add search functionality.
Swordfish90 Sep 15, 2019
e1c595e
Force both navigationbar color to be black.
Swordfish90 Sep 15, 2019
d1a914e
Fix wrong behaviour in activity recreation.
Swordfish90 Sep 15, 2019
9ff457d
Undo Picasso requests on view recycle.
Swordfish90 Sep 15, 2019
5e47f72
Display placeholder when cover art is missing.
Swordfish90 Sep 15, 2019
9be04fb
Completely clear items in viewholder unbind.
Swordfish90 Sep 15, 2019
086bb9b
Fix back button navigation.
Swordfish90 Sep 15, 2019
25f21b1
Avoid GameActivity recreation on rotation. This is temporary till pro…
Swordfish90 Sep 16, 2019
fdda9df
Enable immersive mode in GameActivity.
Swordfish90 Sep 16, 2019
0e45891
Rudimentary permission management in MainActivity.
Swordfish90 Sep 16, 2019
8dda108
LocalStorageProvider now only check in private app directories on mob…
Swordfish90 Sep 17, 2019
7afd3f2
Index games in a background Work. Update WorkManager version.
Swordfish90 Sep 17, 2019
8ab8b5c
Use StorageAccessFramework for roms. The first step towards proper An…
Swordfish90 Sep 18, 2019
0047465
Allow customizable haptic feedback.
Swordfish90 Sep 18, 2019
923f878
Make configuration changes really work.
Swordfish90 Sep 18, 2019
b8741bb
Revert "Allow customizable haptic feedback."
Swordfish90 Sep 20, 2019
10414ed
Enlarge touch controls on bigger devices.
Swordfish90 Sep 21, 2019
29d7c89
Fix code style issues and update kotlint version.
Swordfish90 Sep 21, 2019
bac2f04
Add app name.
Swordfish90 Sep 21, 2019
93bbed8
Add shader effects for lcd and crt.
Swordfish90 Sep 23, 2019
116fbf0
Add SNES gamepad.
Swordfish90 Sep 23, 2019
078a4ae
Some more code style.
Swordfish90 Sep 23, 2019
07f6473
Improve search layout and theming.
Swordfish90 Sep 24, 2019
4321bfe
Display material progressbar on indexing.
Swordfish90 Sep 25, 2019
69d8c8f
Improve lcd shader.
Swordfish90 Sep 25, 2019
6d9499e
Fix some ui issues.
Swordfish90 Sep 26, 2019
e69cc42
Redesign home screen with epoxy.
Swordfish90 Sep 27, 2019
e953d7d
Use lists instead of grids for games and search. Replace heart in gri…
Swordfish90 Sep 30, 2019
809bedd
Properly scale touch control size with display size.
Swordfish90 Oct 2, 2019
1539d64
Move viewmodel initializations in onResume.
Swordfish90 Oct 3, 2019
3d74e9b
Some lint fixes.
Swordfish90 Oct 3, 2019
e07ed85
Handle activity lifecycle persisting emulation state (in memory).
Swordfish90 Oct 4, 2019
6fe59e2
Properly handle touch subscriptions in onCreate.
Swordfish90 Oct 4, 2019
ca8d040
Fix immersive sticky mode behaviour.
Swordfish90 Oct 4, 2019
30340b4
Use thumbnail placeholders in epoxy views.
Swordfish90 Oct 4, 2019
f06ebd6
Take persistent uris when using storage access framework.
Swordfish90 Oct 4, 2019
aebc1b5
Cache storage access framework games for future access.
Swordfish90 Oct 4, 2019
544abe3
Disable translucent bars and use darker color variant.
Swordfish90 Oct 5, 2019
89b4258
Make actionbutton stroke width proportional to their size.
Swordfish90 Oct 5, 2019
6e3077f
Fix tiny behaviour issues in SearchFragment.
Swordfish90 Oct 5, 2019
66e43cf
Fix lint issues.
Swordfish90 Oct 7, 2019
90b763b
Fix work chain dying forever when an error occurs.
Swordfish90 Oct 7, 2019
d628c7e
Add full retropad support (psx like).
Swordfish90 Oct 7, 2019
b0281f0
Arcade simulation was no longer working. Use fbneo since fbalpha is n…
Swordfish90 Oct 7, 2019
5dd12dc
Hash functions in ovgdb are actually nullable.
Swordfish90 Oct 7, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Some more code style.
Swordfish90 committed Sep 23, 2019
commit 078a4aeb4463e99b54793919735f45271d818e00
Original file line number Diff line number Diff line change
@@ -128,14 +128,18 @@ class GameActivity : RetrogradeActivity() {
private fun setupTouchInput(game: Game) {
val frameLayout = findViewById<FrameLayout>(R.id.game_layout)

val gameView = when (game.systemId) {
in listOf(GameSystem.GBA_ID) -> GamePadFactory.getGamePadView(this, GamePadFactory.Layout.GBA)
in listOf(GameSystem.SNES_ID) -> GamePadFactory.getGamePadView(this, GamePadFactory.Layout.SNES)
in listOf(GameSystem.NES_ID, GameSystem.GB_ID, GameSystem.GBC_ID) -> GamePadFactory.getGamePadView(this, GamePadFactory.Layout.NES)
in listOf(GameSystem.GENESIS_ID) -> GamePadFactory.getGamePadView(this, GamePadFactory.Layout.GENESIS)
val gamePadLayout = when (game.systemId) {
in listOf(GameSystem.GBA_ID) -> GamePadFactory.Layout.GBA
in listOf(GameSystem.SNES_ID) -> GamePadFactory.Layout.SNES
in listOf(GameSystem.NES_ID, GameSystem.GB_ID, GameSystem.GBC_ID) -> GamePadFactory.Layout.NES
in listOf(GameSystem.GENESIS_ID) -> GamePadFactory.Layout.GENESIS
else -> null
}

val gameView = gamePadLayout?.let {
GamePadFactory.getGamePadView(this, it)
}

if (gameView != null) {
frameLayout.addView(gameView)

Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ sealed class RetroShader(
@Language("glsl") val vertexShader: String,
val interpolation: Interpolation
) {
enum class Interpolation {
enum class Interpolation {
LINEAR,
NEAREST
}