nativeplatform

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package nativeplatform provides the operating-system queries that upstream Pi loads from its per-platform N-API helpers (packages/tui/src/native-platform.ts). Pig builds with CGO_ENABLED=0 and loads no Node addons, so each query calls the same system function directly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsModifierPressed

func IsModifierPressed(name string) bool

IsModifierPressed mirrors the helper's isModifierPressed(name): it reports whether the named modifier ("shift", "command", "control", or "option") is held right now. It reports false when the platform has no helper, the system function cannot be loaded, or the name is unknown.

Types

This section is empty.

Jump to

Keyboard shortcuts

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