Skip to content
Merged
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ import androidx.compose.ui.unit.dp
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import org.jetbrains.compose.resources.stringResource
import org.koin.compose.viewmodel.koinViewModel
import org.meshtastic.core.repository.MirrorFormat
import org.meshtastic.core.repository.MirrorFrame
import org.meshtastic.core.repository.MirrorPalette
import org.meshtastic.core.resources.Res
Expand Down Expand Up @@ -185,7 +186,8 @@ fun DisplayMirrorContent(modifier: Modifier = Modifier, viewModel: DisplayMirror
currentFrame,
palette,
enabled = active,
hasTouch = displayInfo?.has_touch == true,
// MUI (the only RGB565 source) feeds taps to its own virtual pointer, touch panel or not
hasTouch = displayInfo?.has_touch == true || currentFrame.format == MirrorFormat.RGB565,
onEvent = viewModel::sendKey,
onTouch = viewModel::sendTouch,
onChar = viewModel::sendChar,
Expand Down