soccerbindings.rb

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

RB
36
字号
## 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)    print "setting bindings for logplayer\n\n";    inputServer.bindCommand('p',      Command.Pause);    inputServer.bindCommand('f',      Command.StepForward);    inputServer.bindCommand('b',      Command.StepBackward);    inputServer.bindCommand('l',      Command.BPlayback);  else    print "setting bindings for online monitor\n\n";    inputServer.bindCommand('k',      Command.KickOff);    inputServer.bindCommand('b',      Command.DropBall);    inputServer.bindCommand('m',      Command.MoveAgent);    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);  endend

⌨️ 快捷键说明

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