Files
izapple2/softVideoSwitch.go
T
2026-03-30 18:30:24 +02:00

31 lines
577 B
Go

package izapple2
import (
"image"
"image/color"
)
/*
Videx Soft Video Switch external on the Videx Videoterm and integrated on the Videx Ultraterm
See:
https://archive.org/details/videx-soft-video-switch
*/
type softVideoSwitchProvider interface {
buildImage(light color.Color) *image.RGBA
isSoftSwitchActive() bool
}
func (a *Apple2) setSoftVideoSwitch(card softVideoSwitchProvider) {
a.softVideoSwitch = card
}
func (a *Apple2) isSoftVideoSwitchActive() bool {
if a.softVideoSwitch == nil {
return false
}
return a.softVideoSwitch.isSoftSwitchActive()
}