fake

package
v0.0.0-...-049bb61 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HID

type HID struct {
	WantSetReport []Report
	WantGetReport []Report
	// contains filtered or unexported fields
}

HID is a fake implementation of the HID object used by dkb4q.Keyboard.

func (*HID) Close

func (d *HID) Close()

func (*HID) GetReport

func (d *HID) GetReport(id int) ([]byte, error)

func (*HID) SetReport

func (d *HID) SetReport(id int, data []byte) error

type Report

type Report struct {
	ID   int
	Data []byte
}

Jump to

Keyboard shortcuts

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