public boolean keyDown(Event evt, int key)
{
if ( key == 's' || key == 'S' )
{
if (bStop.isEnabled())
{
action( new Event( bStop, Event.ACTION_EVENT, null), null);
}
else
{
action( new Event( bStart, Event.ACTION_EVENT, null), null);
}
return true;
}
else if( key == 't' || key == 'T' )
{
action( new Event( bStimulate, Event.ACTION_EVENT, null), null);
return true;
}
else if( key == 'o' || key == 'O' )
{
action( new Event( bOptions, Event.ACTION_EVENT, null), null);
return true;
}
return false;
}
ModelApplet.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:PhET
作者:
评论列表
文章目录