presenter

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package presenter implements the KDE Connect presenter remote plugin. It receives gyroscope-based pointer movements from the phone and moves the system cursor accordingly. Special keys (next/prev/fullscreen/esc) are handled by the mousepad plugin via kdeconnect.mousepad.request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PresenterBody

type PresenterBody struct {
	Dx   *float64 `json:"dx,omitempty"`
	Dy   *float64 `json:"dy,omitempty"`
	Stop *bool    `json:"stop,omitempty"`
}

PresenterBody is the payload of a kdeconnect.presenter packet.

type PresenterPlugin

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

PresenterPlugin handles kdeconnect.presenter packets containing gyroscope-based pointer deltas (dx/dy) from the Android presenter remote.

func NewPresenterPlugin

func NewPresenterPlugin(logger *zap.Logger) *PresenterPlugin

NewPresenterPlugin creates a new presenter remote plugin.

func (*PresenterPlugin) Handle

Handle dispatches a presenter packet to the worker goroutine. It returns immediately as required by the plugin contract.

func (*PresenterPlugin) IncomingTypes

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

func (*PresenterPlugin) Name

func (p *PresenterPlugin) Name() string

func (*PresenterPlugin) OnConnect

func (p *PresenterPlugin) OnConnect(_ device.Sender)

func (*PresenterPlugin) OnDisconnect

func (p *PresenterPlugin) OnDisconnect(_ device.Sender)

func (*PresenterPlugin) OutgoingTypes

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

func (*PresenterPlugin) Timeout

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

Jump to

Keyboard shortcuts

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