Add keyboard control (WIP, broken)
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user