sfml.js
Preparing search index...
Keyboard
isKeyPressed
Function isKeyPressed
isKeyPressed
(
key
:
KeyboardKey
)
:
boolean
查询逻辑按键的实时按下状态,不依赖事件队列。
Parameters
key
:
KeyboardKey
Returns
boolean
isKeyPressed
(
code
:
KeyboardScancode
,
type
:
"scancode"
)
:
boolean
按物理扫描码查询实时按下状态,第二参数必须为 scancode。
Parameters
code
:
KeyboardScancode
type
:
"scancode"
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
sfml.js
Loading...
查询逻辑按键的实时按下状态,不依赖事件队列。