inputdevices1

package
v0.0.0-...-c5429dd Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TouchpadEnable

func TouchpadEnable(filePath string) (bool, error)

func TouchpadExist

func TouchpadExist(filePath string) error

Types

type InputDevices

type InputDevices struct {

	// dbusutil-gen: equal=touchscreenSliceEqual
	Touchscreens []dbus.ObjectPath

	SupportWakeupDevices map[string]string `prop:"access:rw"` //保存所有支持usbhid设备的power/wakeup状态
	// contains filtered or unexported fields
}

func (*InputDevices) GetExportedMethods

func (v *InputDevices) GetExportedMethods() dbusutil.ExportedMethods

func (*InputDevices) GetInterfaceName

func (*InputDevices) GetInterfaceName() string

func (*InputDevices) SetWakeupDevices

func (m *InputDevices) SetWakeupDevices(sender dbus.Sender, path string, value string) *dbus.Error

type Touchpad

type Touchpad struct {
	Enable  bool
	IsExist bool
	// contains filtered or unexported fields
}

func (*Touchpad) GetExportedMethods

func (v *Touchpad) GetExportedMethods() dbusutil.ExportedMethods

func (*Touchpad) GetInterfaceName

func (t *Touchpad) GetInterfaceName() string

func (*Touchpad) SetTouchpadEnable

func (t *Touchpad) SetTouchpadEnable(enabled bool) *dbus.Error

type Touchscreen

type Touchscreen struct {
	UUID       string
	Name       string
	Phys       string
	DevNode    string
	BusType    string
	Serial     string
	OutputName string
	Width      float64
	Height     float64
	// contains filtered or unexported fields
}

func (*Touchscreen) GetInterfaceName

func (t *Touchscreen) GetInterfaceName() string

Jump to

Keyboard shortcuts

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