Documentation ¶
Index ¶
- func Mux(readers []LogReader) (<-chan stateUpdate, <-chan error)
- type Counter
- type FullView
- type LoadingView
- type LockedView
- type LogReader
- type MovingWall
- type Multi
- type Wall
- func (m *Wall) CreateSleepbgLock()
- func (m *Wall) DeleteSleepbgLock()
- func (m *Wall) FocusProjector() error
- func (m *Wall) GotoWall()
- func (m *Wall) GrabWallKeys() error
- func (m *Wall) HandleInput(id int, mod x11.Keymod, timestamp xproto.Timestamp) error
- func (m *Wall) HandleLockLoaded(timestamp xproto.Timestamp) error
- func (m *Wall) HandlePlayLoaded(timestamp xproto.Timestamp) error
- func (m *Wall) HandlePlayLocked(timestamp xproto.Timestamp) error
- func (m *Wall) HandleResetInput(timestamp xproto.Timestamp)
- func (m *Wall) HandleResetLoading(timestamp xproto.Timestamp) error
- func (m *Wall) HandleUnlockLocked(timestamp xproto.Timestamp) error
- func (m *Wall) Run() error
- func (m *Wall) SetAffinities()
- func (m *Wall) SetAffinity(id int, affinity int)
- func (m *Wall) SetLocked(id int, locked bool)
- func (m *Wall) UngrabWallKeys() error
- func (m *Wall) UpdateAffinity(id int)
- func (m *Wall) WallLock(id int, timestamp xproto.Timestamp) error
- func (m *Wall) WallPlay(id int, timestamp xproto.Timestamp) error
- func (m *Wall) WallReset(id int, timestamp xproto.Timestamp) error
- func (m *Wall) WallResetOthers(id int, timestamp xproto.Timestamp)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter keeps track of the number of resets performed and writes them to a file on disk.
func NewCounter ¶
NewCounter creates a new reset counter from the user's configuration profile. If CountResets is disabled, then the Counter will do nothing.
type LoadingView ¶
type LoadingView struct {
// contains filtered or unexported fields
}
type LockedView ¶
type LockedView struct {
// contains filtered or unexported fields
}
type LogReader ¶
type LogReader struct { Errors <-chan error Events <-chan mc.InstanceState // contains filtered or unexported fields }
func NewLogReader ¶
type MovingWall ¶
type MovingWall struct {
// contains filtered or unexported fields
}
func DefaultMovingWall ¶
func DefaultMovingWall(obs *obs.Client, conf cfg.Profile) MovingWall
func (*MovingWall) SetupWallScene ¶
type Multi ¶
type Multi struct {
// contains filtered or unexported fields
}
Multi implements a traditional multi-instance resetting setup, where the user plays one instance before resetting and switching to the next instance.
type Wall ¶
type Wall struct {
// contains filtered or unexported fields
}
Wall provides an implementation of the famous "wall" resetting style, where all of the user's instances are shown on a grid on an OBS projector and they can choose which to play.
func (*Wall) CreateSleepbgLock ¶
func (m *Wall) CreateSleepbgLock()
CreateSleepbgLock creates the sleepbg.lock file if the user has enabled it in their configuration profile.
func (*Wall) DeleteSleepbgLock ¶
func (m *Wall) DeleteSleepbgLock()
DeleteSleepbgLock deletes the sleepbg.lock file if the user has disabled it in their configuration profile.
func (*Wall) FocusProjector ¶
FocusProjector focuses the OBS projector.
func (*Wall) GrabWallKeys ¶
GrabWallKeys attempts to grab wall-only keys from the X server.
func (*Wall) HandleInput ¶
HandleInput handles an instance-specific input on the wall.
func (*Wall) HandleLockLoaded ¶
Handles the locking of the first loaded instance.
func (*Wall) HandlePlayLoaded ¶
Handles playing the first loaded instance.
func (*Wall) HandlePlayLocked ¶
Handles playing the first locked instance.
func (*Wall) HandleResetInput ¶
HandleResetInput handles the user pressing the Reset keybind.
func (*Wall) HandleResetLoading ¶
Handles resetting the first instance of the loading view.
func (*Wall) HandleUnlockLocked ¶
Handles the unlocking of the first locked instance.
func (*Wall) Run ¶
Run attempts to run the wall resetter. If an error occurs during setup, it will be returned.
func (*Wall) SetAffinities ¶
func (m *Wall) SetAffinities()
SetAffinities sets the CPU affinity of each instance to the correct value. This should be called whenever the user switches to or from the wall scene to switch instances between mid/high affinities.
func (*Wall) SetAffinity ¶
SetAffinity sets the CPU affinity of a specific instance.
func (*Wall) UngrabWallKeys ¶
UngrabWallKeys releases wall-only key grabs.
func (*Wall) UpdateAffinity ¶
UpdateAffinity updates the affinity of an instance based on its state.