macos

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: LGPL-3.0 Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package macos defines the screencap and input method flags for macOS controllers.

Index

Constants

View Source
const (
	// ScreencapNone selects no macOS screencap method.
	ScreencapNone ScreencapMethod = 0
	// ScreencapScreenCaptureKit selects the ScreenCaptureKit method:
	// modern macOS screencap using ScreenCaptureKit. Fast, high
	// compatibility, requires Screen Recording permission, supports
	// background capture, macOS 14.0+.
	ScreencapScreenCaptureKit ScreencapMethod = 1

	// InputNone selects no macOS input method.
	InputNone InputMethod = 0
	// InputGlobalEvent selects the GlobalEvent input method: injects into
	// the global HID event stream via CGEventPost(kCGHIDEventTap),
	// dispatched by the OS to the front window. High compatibility,
	// requires Accessibility permission, no background support.
	InputGlobalEvent InputMethod = 1
	// InputPostToPid selects the PostToPid input method: directly sends to
	// the target process using CGEventPostToPid. Medium compatibility,
	// requires Accessibility permission, supports background input.
	InputPostToPid InputMethod = 1 << 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InputMethod

type InputMethod uint64

InputMethod defines the macOS input method.

Select ONE method only.

type ScreencapMethod

type ScreencapMethod uint64

ScreencapMethod defines the macOS screencap method.

Select ONE method only.

Jump to

Keyboard shortcuts

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