File tree Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -529,6 +529,11 @@ keyBinds:
529529 title : 仅使用键盘生长节点
530530 description : |
531531 按下后,仅使用键盘生长节点
532+ masterBrakeControl :
533+ title : 动力系统刹车总控制器
534+ description : |
535+ 按下后,摄像机无法移动
536+ 松开后,摄像机恢复正常
532537 selectAll :
533538 title : selectAll
534539 description : Press to select all objects on the canvas
Original file line number Diff line number Diff line change @@ -544,6 +544,11 @@ keyBinds:
544544 title : 仅使用键盘生长节点
545545 description : |
546546 按下后,仅使用键盘生长节点
547+ masterBrakeControl :
548+ title : 动力系统刹车总控制器
549+ description : |
550+ 按下后,摄像机无法移动
551+ 松开后,摄像机恢复正常
547552 selectAll :
548553 title : 全选
549554 description : 按下后,所有节点和连线都会被选中
Original file line number Diff line number Diff line change @@ -495,6 +495,11 @@ keyBinds:
495495 title : 仅使用键盘生长节点
496496 description : |
497497 按下后,仅使用键盘生长节点
498+ masterBrakeControl :
499+ title : 动力系统刹车总控制器
500+ description : |
501+ 按下后,摄像机无法移动
502+ 松开后,摄像机恢复正常
498503 selectAll :
499504 title : 全选
500505 description : 按下后,所有节点和连线都会被选中
Original file line number Diff line number Diff line change @@ -418,6 +418,20 @@ async function registerKeyBinds() {
418418 KeyboardOnlyEngine . createFinished ( ) ;
419419 }
420420 } ) ;
421+ const bindCamear = await KeyBinds . create ( "masterBrakeControl" , "pause" , {
422+ control : false ,
423+ alt : false ,
424+ shift : false ,
425+ } ) ;
426+ // 此按键有待进一步设计
427+ bindCamear . down ( ( ) => {
428+ // Camera.allowMoveCameraByWSAD = false;
429+ Camera . clearMoveCommander ( ) ;
430+ Camera . speed = Vector . getZero ( ) ;
431+ } ) ;
432+ bindCamear . up ( ( ) => {
433+ // Camera.allowMoveCameraByWSAD = true;
434+ } ) ;
421435}
422436
423437/** 加载语言文件 */
You can’t perform that action at this time.
0 commit comments