跳转到内容
查看源码

input.read自动生成

读取指针、按钮、按键、手柄、滚轮,以及窗口像素尺寸与缩放。

requires { input.read; }

Read the pointer, buttons, keys, pad and wheel, and the window’s pixel size and scale.

运行会话的人可以用 --grant 限定可授予的能力,例如 --grant field.read,field.write;要求未授予能力的 Kernel 会在准备阶段被拒绝,之前运行的版本继续运行。

函数 分类
window 上下文函数
scale 上下文函数
pointer 上下文函数
pointer_down 上下文函数
button 上下文函数
stick 上下文函数
wheel 上下文函数
pads 上下文函数
key 上下文函数
typed 上下文函数