Add most of scrolling logic; add notes

This commit is contained in:
Matt Nadareski
2021-11-29 22:16:23 -08:00
parent 3e44c11502
commit 1880d49ee5
3 changed files with 157 additions and 1 deletions

View File

@@ -11,9 +11,17 @@ namespace RedBookPlayer.Models.Hardware.Karaoke
// Only lower 6 bits are used, mask with 0x3F
public byte HScroll { get; private set; }
public ScrollCommand HScrollCommand => (ScrollCommand)((this.HScroll & 0x30) >> 4);
public int HScrollOffset => this.HScroll & 0x07;
// Only lower 6 bits are used, mask with 0x3F
public byte VScroll { get; private set; }
public ScrollCommand VScrollCommand => (ScrollCommand)((this.VScroll & 0x30) >> 4);
public int VScrollOffset => this.VScroll & 0x07;
public byte[] Filler { get; private set; } = new byte[13];
/// <summary>