Add Keyboard Control

This commit is contained in:
2025-06-02 06:06:11 +02:00
parent 54b1810606
commit 93103e4e49
38 changed files with 1824 additions and 418 deletions

View File

@@ -20,6 +20,7 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import ch.dissem.yaep.domain.generateGame
import ch.dissem.yaep.ui.common.App
import ch.dissem.yaep.ui.common.focus.FocusFollowingSelectionManager
import org.jetbrains.compose.resources.painterResource
import org.jetbrains.compose.resources.stringResource
import yaep.commonui.generated.resources.action_restart
@@ -63,8 +64,8 @@ class MainActivity : ComponentActivity() {
) { insets ->
App(
modifier = Modifier.padding(insets),
rootSelectionManager = FocusFollowingSelectionManager,
spacing = 4.dp,
selectDirectly = false,
game = game,
onNewGame = { game = generateGame() },
resetCluesBeacon = resetCluesBeacon
@@ -83,7 +84,7 @@ fun AppAndroidPreview() {
App(
game = game,
spacing = 4.dp,
selectDirectly = false,
rootSelectionManager = FocusFollowingSelectionManager,
onNewGame = { game = generateGame() },
resetCluesBeacon = resetCluesBeacon
)