Documentation ¶
Index ¶
- func Hello(name string) string
- func IntsToBytesBE(i []int) []byte
- type DeviceWatcher
- type DeviceWatcherStatus
- type TAPInputMode
- type TapDevice
- func (td TapDevice) FW() int
- func (td *TapDevice) FromBlueToothScanResult(adapter bluetooth.Adapter, device bluetooth.ScanResult) TapDevice
- func (td TapDevice) Identifier() bluetooth.MACAddress
- func (td TapDevice) InputMode() TAPInputMode
- func (td TapDevice) IsReady() bool
- func (td *TapDevice) MakeReady()
- func (td TapDevice) Name() string
- func (td *TapDevice) SendMode()
- func (td TapDevice) SupportsMouse() bool
- func (td *TapDevice) Vibrate(durations []byte)
- type TapManager
- type TappedEventArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntsToBytesBE ¶
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) FromBlueToothScanResult ¶
func (TapDevice) Identifier ¶
func (td TapDevice) Identifier() bluetooth.MACAddress
func (TapDevice) InputMode ¶
func (td TapDevice) InputMode() TAPInputMode
func (TapDevice) SupportsMouse ¶
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
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.