Documentation
¶
Index ¶
- type Device
- func (d *Device) Close() error
- func (d *Device) EnsureKeyboardState() *keyboard.InputState
- func (d *Device) EnsureMouseState() *mouse.InputState
- func (d *Device) Info() viipertypes.Device
- func (d *Device) IsClosed() bool
- func (d *Device) QueueStateSend()
- func (d *Device) ResetKBMState()
- func (d *Device) State() *encoding.BinaryMarshaler
- func (d *Device) Type() Type
- type Type
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) 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) QueueStateSend ¶
func (d *Device) QueueStateSend()
func (*Device) ResetKBMState ¶
func (d *Device) ResetKBMState()
func (*Device) State ¶
func (d *Device) State() *encoding.BinaryMarshaler
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" )
Click to show internal directories.
Click to hide internal directories.