Documentation
¶
Index ¶
- Constants
- Variables
- type Device
- func (d *Device) Button(index int) benjamin.Button
- func (d *Device) ButtonArea() benjamin.Screen
- func (d *Device) ButtonAt(p image.Point) benjamin.Button
- func (d *Device) ButtonLayout() image.Point
- func (d *Device) Buttons() int
- func (d *Device) Clear() error
- func (d *Device) Close() error
- func (d *Device) DeviceInfo() hid.DeviceInfo
- func (d *Device) Display(index int) benjamin.Display
- func (d *Device) DisplayArea() benjamin.Screen
- func (d *Device) DisplayLayout() image.Point
- func (d *Device) Displays() int
- func (d *Device) Encoder(index int) benjamin.Encoder
- func (d *Device) Encoders() int
- func (d *Device) Events() <-chan benjamin.Event
- func (d *Device) Manufacturer() string
- func (d *Device) Open() error
- func (d *Device) Path() string
- func (d *Device) Product() string
- func (d *Device) Serial() string
- type Properties
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) ButtonArea ¶ added in v1.0.1
func (*Device) ButtonLayout ¶
func (*Device) DeviceInfo ¶ added in v1.1.0
func (d *Device) DeviceInfo() hid.DeviceInfo
func (*Device) DisplayArea ¶ added in v1.0.1
func (*Device) DisplayLayout ¶
func (*Device) Manufacturer ¶
type Properties ¶
Click to show internal directories.
Click to hide internal directories.