internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyCanvasToUint8ClampedArray

func CopyCanvasToUint8ClampedArray(dst js.Value, canvas pi.Canvas)

func Run

func Run()

Types

type ByteBuffer

type ByteBuffer struct {
	// contains filtered or unexported fields
}

func NewByteBuffer

func NewByteBuffer(v js.Value) *ByteBuffer

func (*ByteBuffer) Data

func (b *ByteBuffer) Data() []byte

func (*ByteBuffer) Read

func (b *ByteBuffer) Read()

type Gamepad

type Gamepad struct {
	// contains filtered or unexported fields
}

func StartGamepad

func StartGamepad(events *ByteBuffer) *Gamepad

func (*Gamepad) Start

func (k *Gamepad) Start(events *ByteBuffer)

func (*Gamepad) Update

func (k *Gamepad) Update()

type Keyboard

type Keyboard struct {
	// contains filtered or unexported fields
}

func StartKeyboard

func StartKeyboard() *Keyboard

func (*Keyboard) Start

func (k *Keyboard) Start()

func (*Keyboard) Update

func (k *Keyboard) Update()

type Mouse

type Mouse struct {
	// contains filtered or unexported fields
}

func (*Mouse) Start

func (m *Mouse) Start(canvas js.Value)

func (*Mouse) Update

func (m *Mouse) Update()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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