internalsoccerbindings.rb

来自「rcssserver3d Robocup 3D比赛官方指定平台」· RB 代码 · 共 38 行

RB
38
字号
## soccerbindings.rb sets up a mapping from input constants used by the# inputserver to soccer command constants#inputServer = get('/sys/server/input');if (inputServer == nil)  print "(soccerbindings.rb) no InputServer present\n";else  print "(soccerbindings.rb) setting up bindings\n";  if ($logPlayerMode == true)    inputServer.bindCommand('p',      Command.Pause);    inputServer.bindCommand('f',      Command.StepForward);    inputServer.bindCommand('b',      Command.StepBackward);    inputServer.bindCommand('l',      Command.BPlayback);  else    inputServer.bindCommand('k',      Command.KickOff);    inputServer.bindCommand('b',      Command.DropBall);    inputServer.bindCommand('c',      Command.KillAgentLeft);    inputServer.bindCommand('m',      Command.KillAgentRight);    inputServer.bindCommand('n',      Command.ShootBall);    inputServer.bindCommand('x',      Command.MoveBall);    inputServer.bindCommand('1',      Command.CameraLeftGoal);    inputServer.bindCommand('2',      Command.CameraLeftCorner);    inputServer.bindCommand('3',      Command.CameraMiddleLeft);    inputServer.bindCommand('4',      Command.CameraMiddle);    inputServer.bindCommand('5',      Command.CameraMiddleRight);    inputServer.bindCommand('6',      Command.CameraRightCorner);    inputServer.bindCommand('7',      Command.CameraRightGoal);    inputServer.bindCommand('l',      Command.FreeKickLeft);    inputServer.bindCommand('r',      Command.FreeKickRight);        inputServer.bindCommand(',',      Command.NextCamera);    inputServer.bindCommand('.',      Command.PreviousCamera);  endend

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?