mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
11 lines
266 B
Go
11 lines
266 B
Go
//go:build windows
|
|
|
|
package hotkey
|
|
|
|
import "wis-free-v3/internal/xhotkey/internal/win"
|
|
|
|
// AsyncKeyDown reports whether the virtual key is currently held (high bit of GetAsyncKeyState).
|
|
func AsyncKeyDown(vk int) bool {
|
|
return win.GetAsyncKeyState(vk)&0x8000 != 0
|
|
}
|