keyboard

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	Pitch
	Flags KeyFlag
}

func (Key) IsPressed

func (k Key) IsPressed() bool

type KeyFlag

type KeyFlag uint8

type Keyboard

type Keyboard struct {
	Keys []Key
}

func New

func New(lowest, highest Pitch) *Keyboard

func (*Keyboard) Press

func (k *Keyboard) Press(pitches ...Pitch)

func (*Keyboard) RenderSVG

func (k *Keyboard) RenderSVG(w io.Writer)

type Line

type Line struct {
	X1 int
	Y1 int
	X2 int
	Y2 int
}

type Rect

type Rect struct {
	ID     string
	Class  string
	Width  int
	Height int
	X      int
	Y      int
	RX     int
	RY     int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL