ModelApplet.java 文件源码

java
阅读 29 收藏 0 点赞 0 评论 0

项目:PhET 作者:
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;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号