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 ¶
- type PresenterBody
- type PresenterPlugin
- func (p *PresenterPlugin) Handle(_ context.Context, _ device.Sender, pkt *protocol.Packet) error
- func (p *PresenterPlugin) IncomingTypes() []string
- func (p *PresenterPlugin) Name() string
- func (p *PresenterPlugin) OnConnect(_ device.Sender)
- func (p *PresenterPlugin) OnDisconnect(_ device.Sender)
- func (p *PresenterPlugin) OutgoingTypes() []string
- func (p *PresenterPlugin) Timeout() time.Duration
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