touch

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeyCodeFromString

func GetKeyCodeFromString(keyStr string) int

GetKeyCodeFromString 将字符串按键标识符转换为数字按键码

func GetModule

func GetModule() model.Module

GetModule 获取模块实例

Types

type TouchModule

type TouchModule struct {
	ThrowException bool // 是否抛出异常
	ShowWarning    bool // 是否显示警告信息
	Debug          bool // 是否开启调试模式(打印脚本堆栈信息)
	// contains filtered or unexported fields
}

TouchModule touch 模块(懒人精灵兼容)

func New

func New() *TouchModule

New 创建一个新的 TouchModule 实例

func (*TouchModule) IsAvailable

func (m *TouchModule) IsAvailable() bool

IsAvailable 检查模块是否可用

func (*TouchModule) Name

func (m *TouchModule) Name() string

Name 返回模块名称

func (*TouchModule) Register

func (m *TouchModule) Register(engine model.Engine) error

Register 向引擎注册方法

Jump to

Keyboard shortcuts

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