mousepad

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MousepadBody

type MousepadBody struct {
	Dx          float64 `json:"dx"`
	Dy          float64 `json:"dy"`
	SingleClick bool    `json:"singleclick"`
	RightClick  bool    `json:"rightclick"`
	MiddleClick bool    `json:"middleclick"`
	Scroll      bool    `json:"scroll"`
	Key         string  `json:"key"`
	SpecialKey  int     `json:"specialKey"`
}

type MousepadPlugin

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

func NewMousepadPlugin

func NewMousepadPlugin(logger *zap.Logger) *MousepadPlugin

func (*MousepadPlugin) Handle

func (p *MousepadPlugin) Handle(ctx context.Context, dev device.Sender, pkt *protocol.Packet) error

func (*MousepadPlugin) IncomingTypes

func (p *MousepadPlugin) IncomingTypes() []string

func (*MousepadPlugin) Name

func (p *MousepadPlugin) Name() string

func (*MousepadPlugin) OnConnect

func (p *MousepadPlugin) OnConnect(dev device.Sender)

func (*MousepadPlugin) OnDisconnect

func (p *MousepadPlugin) OnDisconnect(dev device.Sender)

func (*MousepadPlugin) OutgoingTypes

func (p *MousepadPlugin) OutgoingTypes() []string

func (*MousepadPlugin) Timeout

func (p *MousepadPlugin) Timeout() time.Duration

Jump to

Keyboard shortcuts

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