viiperdevice

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	DeviceCtx context.Context

	FeedbackCh    <-chan encoding.BinaryUnmarshaler
	FeedbackErrCh <-chan error
	// contains filtered or unexported fields
}

func New

func New(
	controlStream *viiperclient.DeviceStream,
	deviceInfo *viipertypes.Device,
	closeFunc func() error,
) *Device

func (*Device) Close

func (d *Device) Close() error

func (*Device) EnsureKeyboardState

func (d *Device) EnsureKeyboardState() *keyboard.InputState

func (*Device) EnsureMouseState

func (d *Device) EnsureMouseState() *mouse.InputState

func (*Device) Info

func (d *Device) Info() viipertypes.Device

func (*Device) IsClosed

func (d *Device) IsClosed() bool

func (*Device) QueueStateSend

func (d *Device) QueueStateSend()

func (*Device) ResetKBMState

func (d *Device) ResetKBMState()

func (*Device) State

func (d *Device) State() *encoding.BinaryMarshaler

func (*Device) Type

func (d *Device) Type() Type

type Type

type Type string
const (
	DeviceTypeUnknown       Type = "unknown"
	DeviceTypeXbox360       Type = "xbox360"
	DeviceTypeDualShock4    Type = "dualshock4"
	DeviceTypeDualSense     Type = "dualsense"
	DeviceTypeDualSenseEdge Type = "dualsenseedge"
	DeviceTypeNS2Pro        Type = "ns2pro"
	DeviceTypeKeyboard      Type = "keyboard"
	DeviceTypeMouse         Type = "mouse"
)

Jump to

Keyboard shortcuts

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