mirror of
https://github.com/ivanizag/izapple2.git
synced 2026-10-22 00:02:27 +00:00
31 lines
577 B
Go
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()
|
|
}
|