tapgosdk

package module
v0.0.0-...-3fb58eb Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hello

func Hello(name string) string

func IntsToBytesBE

func IntsToBytesBE(i []int) []byte

Types

type DeviceWatcher

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

func NewDeviceWatcher

func NewDeviceWatcher() *DeviceWatcher

func (*DeviceWatcher) Start

func (d *DeviceWatcher) Start()

func (*DeviceWatcher) Stop

func (d *DeviceWatcher) Stop()

type DeviceWatcherStatus

type DeviceWatcherStatus int
const (
	Created              DeviceWatcherStatus = 0
	Started              DeviceWatcherStatus = 1
	EnumerationCompleted DeviceWatcherStatus = 2
	Stopped              DeviceWatcherStatus = 4
)

type TAPInputMode

type TAPInputMode int
const (
	Controller             TAPInputMode = 0x1
	ControllerWithMouseHID TAPInputMode = 0x03
	RawSensors             TAPInputMode = 0xa
	Text                   TAPInputMode = 0x0
	Null                   TAPInputMode = 0xff
)

type TapDevice

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

func NewTapDevice

func NewTapDevice(mode TAPInputMode) TapDevice

func (TapDevice) FW

func (td TapDevice) FW() int

func (*TapDevice) FromBlueToothScanResult

func (td *TapDevice) FromBlueToothScanResult(adapter bluetooth.Adapter, device bluetooth.ScanResult) TapDevice

func (TapDevice) Identifier

func (td TapDevice) Identifier() bluetooth.MACAddress

func (TapDevice) InputMode

func (td TapDevice) InputMode() TAPInputMode

func (TapDevice) IsReady

func (td TapDevice) IsReady() bool

func (*TapDevice) MakeReady

func (td *TapDevice) MakeReady()

func (TapDevice) Name

func (td TapDevice) Name() string

func (*TapDevice) SendMode

func (td *TapDevice) SendMode()

func (TapDevice) SupportsMouse

func (td TapDevice) SupportsMouse() bool

func (*TapDevice) Vibrate

func (td *TapDevice) Vibrate(durations []byte)

type TapManager

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

func NewTapManager

func NewTapManager() *TapManager

func (*TapManager) HasMultipleTapConnections

func (tm *TapManager) HasMultipleTapConnections() bool

func (TapManager) RestartDeviceWatcher

func (tm TapManager) RestartDeviceWatcher()

func (*TapManager) SetDefaultIputMode

func (tm *TapManager) SetDefaultIputMode(inputMode TAPInputMode)

func (*TapManager) Start

func (tm *TapManager) Start()

func (*TapManager) Vibrate

func (tm *TapManager) Vibrate(durations []byte)

type TappedEventArgs

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

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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