streamdeck

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const VendorID = 0x0fd9

VendorID for Elgate (Corsair) Stream Decks

Variables

View Source
var (
	// DisplayImageInterpolator is the default interpolator for Display images.
	DisplayImageInterpolator draw.Interpolator = draw.CatmullRom

	// ButtonImageInterpolator is the default interpolator for Button images.
	ButtonImageInterpolator draw.Interpolator = draw.BiLinear
)
View Source
var MK2 = Properties{
	Model:     "Stream Deck MK.2",
	ProductID: 0x0080,
	// contains filtered or unexported fields
}
View Source
var Mini = Properties{
	Model:     "Stream Deck Mini",
	ProductID: 0x0063,
	// contains filtered or unexported fields
}
View Source
var MiniMK2 = Properties{
	Model:     "Stream Deck Mini MK.2",
	ProductID: 0x0090,
	// contains filtered or unexported fields
}
View Source
var Orig = Properties{
	Model:     "Stream Deck",
	ProductID: 0x0060,
	// contains filtered or unexported fields
}
View Source
var Plus = Properties{
	Model:     "Stream Deck Plus",
	ProductID: 0x0084,
	// contains filtered or unexported fields
}
View Source
var V2 = Properties{
	Model:     "Stream Deck V2",
	ProductID: 0x006d,
	// contains filtered or unexported fields
}
View Source
var XL = Properties{
	Model:     "Stream Deck XL",
	ProductID: 0x006c,
	// contains filtered or unexported fields
}

Functions

This section is empty.

Types

type Device

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

func New

func New(info hid.DeviceInfo, prop Properties) *Device

func (*Device) Button

func (d *Device) Button(index int) benjamin.Button

func (*Device) ButtonArea added in v1.0.1

func (d *Device) ButtonArea() benjamin.Screen

func (*Device) ButtonAt

func (d *Device) ButtonAt(p image.Point) benjamin.Button

func (*Device) ButtonLayout

func (d *Device) ButtonLayout() image.Point

func (*Device) Buttons

func (d *Device) Buttons() int

func (*Device) Clear

func (d *Device) Clear() error

func (*Device) Close

func (d *Device) Close() error

func (*Device) DeviceInfo added in v1.1.0

func (d *Device) DeviceInfo() hid.DeviceInfo

func (*Device) Display

func (d *Device) Display(index int) benjamin.Display

func (*Device) DisplayArea added in v1.0.1

func (d *Device) DisplayArea() benjamin.Screen

func (*Device) DisplayLayout

func (d *Device) DisplayLayout() image.Point

func (*Device) Displays

func (d *Device) Displays() int

func (*Device) Encoder

func (d *Device) Encoder(index int) benjamin.Encoder

func (*Device) Encoders

func (d *Device) Encoders() int

func (*Device) Events

func (d *Device) Events() <-chan benjamin.Event

func (*Device) Manufacturer

func (d *Device) Manufacturer() string

func (*Device) Open

func (d *Device) Open() error

func (*Device) Path added in v1.0.1

func (d *Device) Path() string

func (*Device) Product

func (d *Device) Product() string

func (*Device) Serial

func (d *Device) Serial() string

type Properties

type Properties struct {
	ProductID uint16
	Model     string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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