inputdevices

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: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionInfo

type ActionInfo struct {
	Action string
	Desc   string
}

type ActionInfos

type ActionInfos []*ActionInfo

type Daemon

type Daemon struct {
	*loader.ModuleBase
}

func NewInputdevicesDaemon

func NewInputdevicesDaemon(logger *log.Logger) *Daemon

func (*Daemon) GetDependencies

func (*Daemon) GetDependencies() []string

func (*Daemon) Start

func (d *Daemon) Start() error

func (*Daemon) Stop

func (*Daemon) Stop() error

type Keyboard

type Keyboard struct {
	PropsMu       sync.RWMutex
	CurrentLayout string `prop:"access:rw"`

	// dbusutil-gen: equal=nil
	UserLayoutList []string

	// dbusutil-gen: ignore-below
	LayoutScope    gsprop.Enum `prop:"access:rw"`
	RepeatEnabled  gsprop.Bool `prop:"access:rw"`
	CapslockToggle gsprop.Bool `prop:"access:rw"`

	CursorBlink gsprop.Int `prop:"access:rw"`

	RepeatInterval gsprop.Uint `prop:"access:rw"`
	RepeatDelay    gsprop.Uint `prop:"access:rw"`

	UserOptionList gsprop.Strv
	// contains filtered or unexported fields
}

func (*Keyboard) AddLayoutOption

func (kbd *Keyboard) AddLayoutOption(option string) *dbus.Error

func (*Keyboard) AddUserLayout

func (kbd *Keyboard) AddUserLayout(layout string) *dbus.Error

func (*Keyboard) ClearLayoutOption

func (kbd *Keyboard) ClearLayoutOption() *dbus.Error

func (*Keyboard) DeleteLayoutOption

func (kbd *Keyboard) DeleteLayoutOption(option string) *dbus.Error

func (*Keyboard) DeleteUserLayout

func (kbd *Keyboard) DeleteUserLayout(layout string) *dbus.Error

func (*Keyboard) GetExportedMethods

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

func (*Keyboard) GetInterfaceName

func (*Keyboard) GetInterfaceName() string

func (*Keyboard) GetLayoutDesc

func (kbd *Keyboard) GetLayoutDesc(layout string) (string, *dbus.Error)

func (*Keyboard) LayoutList

func (kbd *Keyboard) LayoutList() (map[string]string, *dbus.Error)

func (*Keyboard) Reset

func (kbd *Keyboard) Reset() *dbus.Error

func (*Keyboard) ToggleNextLayout

func (kbd *Keyboard) ToggleNextLayout() *dbus.Error

type Manager

type Manager struct {
	Infos      devicePathInfos // readonly
	WheelSpeed gsprop.Uint     `prop:"access:rw"`
	// contains filtered or unexported fields
}

func NewManager

func NewManager(service *dbusutil.Service) *Manager

func (*Manager) GetExportedMethods

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

func (*Manager) GetInterfaceName

func (*Manager) GetInterfaceName() string

type Mouse

type Mouse struct {
	PropsMu    sync.RWMutex
	DeviceList string
	Exist      bool

	// dbusutil-gen: ignore-below
	Enabled               bool        `prop:"access:rw"`
	LeftHanded            gsprop.Bool `prop:"access:rw"`
	DisableTpad           gsprop.Bool `prop:"access:rw"`
	NaturalScroll         gsprop.Bool `prop:"access:rw"`
	MiddleButtonEmulation gsprop.Bool `prop:"access:rw"`
	AdaptiveAccelProfile  gsprop.Bool `prop:"access:rw"`

	MotionAcceleration gsprop.Double `prop:"access:rw"`
	MotionThreshold    gsprop.Double `prop:"access:rw"`
	MotionScaling      gsprop.Double `prop:"access:rw"`

	DoubleClick   gsprop.Int `prop:"access:rw"`
	DragThreshold gsprop.Int `prop:"access:rw"`
	// contains filtered or unexported fields
}

func (*Mouse) Enable

func (m *Mouse) Enable(enabled bool) *dbus.Error

func (*Mouse) GetExportedMethods

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

func (*Mouse) GetInterfaceName

func (*Mouse) GetInterfaceName() string

func (*Mouse) Reset

func (m *Mouse) Reset() *dbus.Error

type Mouses

type Mouses []*mouseInfo

type OutputInfo

type OutputInfo struct {
	Name string
	X    int16
	Y    int16
	W    uint16
	H    uint16
}

func (*OutputInfo) Contains

func (i *OutputInfo) Contains(x, y int16) bool

func (*OutputInfo) String

func (i *OutputInfo) String() string

type Touchpad

type Touchpad struct {
	PropsMu    sync.RWMutex
	Exist      bool
	DeviceList string

	// dbusutil-gen: ignore-below
	TPadEnable      gsprop.Bool `prop:"access:rw"`
	LeftHanded      gsprop.Bool `prop:"access:rw"`
	DisableIfTyping gsprop.Bool `prop:"access:rw"`
	NaturalScroll   gsprop.Bool `prop:"access:rw"`
	EdgeScroll      gsprop.Bool `prop:"access:rw"`
	HorizScroll     gsprop.Bool `prop:"access:rw"`
	VertScroll      gsprop.Bool `prop:"access:rw"`
	TapClick        gsprop.Bool `prop:"access:rw"`
	PalmDetect      gsprop.Bool `prop:"access:rw"`

	MotionAcceleration gsprop.Double `prop:"access:rw"`
	MotionThreshold    gsprop.Double `prop:"access:rw"`
	MotionScaling      gsprop.Double `prop:"access:rw"`

	DoubleClick   gsprop.Int `prop:"access:rw"`
	DragThreshold gsprop.Int `prop:"access:rw"`
	DeltaScroll   gsprop.Int `prop:"access:rw"`
	PalmMinWidth  gsprop.Int `prop:"access:rw"`
	PalmMinZ      gsprop.Int `prop:"access:rw"`
	// contains filtered or unexported fields
}

func (*Touchpad) Enable

func (tpad *Touchpad) Enable(enabled bool) *dbus.Error

func (*Touchpad) GetExportedMethods

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

func (*Touchpad) GetInterfaceName

func (*Touchpad) GetInterfaceName() string

func (*Touchpad) Reset

func (tpad *Touchpad) Reset() *dbus.Error

type Touchpads

type Touchpads []*touchpadInfo

type TrackPoint

type TrackPoint struct {
	PropsMu    sync.RWMutex
	DeviceList string
	Exist      bool

	// dbusutil-gen: ignore-below
	MiddleButtonEnabled gsprop.Bool `prop:"access:rw"`
	WheelEmulation      gsprop.Bool `prop:"access:rw"`
	WheelHorizScroll    gsprop.Bool `prop:"access:rw"`

	MiddleButtonTimeout   gsprop.Int `prop:"access:rw"`
	WheelEmulationButton  gsprop.Int `prop:"access:rw"`
	WheelEmulationTimeout gsprop.Int `prop:"access:rw"`

	MotionAcceleration gsprop.Double `prop:"access:rw"`
	MotionThreshold    gsprop.Double `prop:"access:rw"`
	MotionScaling      gsprop.Double `prop:"access:rw"`

	LeftHanded gsprop.Bool `prop:"access:rw"`
	// contains filtered or unexported fields
}

func (*TrackPoint) GetExportedMethods

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

func (*TrackPoint) GetInterfaceName

func (*TrackPoint) GetInterfaceName() string

func (*TrackPoint) Reset

func (tp *TrackPoint) Reset() *dbus.Error

type Wacom

type Wacom struct {
	PropsMu    sync.RWMutex
	DeviceList string
	Exist      bool
	MapOutput  string

	// dbusutil-gen: ignore-below
	LeftHanded       gsprop.Bool `prop:"access:rw"`
	CursorMode       gsprop.Bool `prop:"access:rw"`
	ForceProportions gsprop.Bool `prop:"access:rw"`
	MouseEnterRemap  gsprop.Bool `prop:"access:rw"` // need remap when mouse enter new screen

	KeyUpAction   gsprop.String `prop:"access:rw"`
	KeyDownAction gsprop.String `prop:"access:rw"`

	Suppress                gsprop.Uint `prop:"access:rw"`
	StylusPressureSensitive gsprop.Uint `prop:"access:rw"`
	EraserPressureSensitive gsprop.Uint `prop:"access:rw"`
	StylusRawSample         gsprop.Uint `prop:"access:rw"`
	EraserRawSample         gsprop.Uint `prop:"access:rw"`
	StylusThreshold         gsprop.Uint `prop:"access:rw"`
	EraserThreshold         gsprop.Uint `prop:"access:rw"`

	ActionInfos ActionInfos // TODO: remove this field
	// contains filtered or unexported fields
}

func (*Wacom) GetExportedMethods

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

func (*Wacom) GetInterfaceName

func (*Wacom) GetInterfaceName() string

func (*Wacom) Reset

func (w *Wacom) Reset() *dbus.Error

type XConfigItem

type XConfigItem struct {
	Name        string   `xml:"name"`
	Description string   `xml:"description"`
	Languages   []string `xml:"languageList>iso639Id"`
}

type XKBConfigRegister

type XKBConfigRegister struct {
	Layouts []XLayout `xml:"layoutList>layout"`
}

type XLayout

type XLayout struct {
	ConfigItem XConfigItem   `xml:"configItem"`
	Variants   []XConfigItem `xml:"variantList>variant>configItem"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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