在Unity开发中捕捉Android的常用事件其实很简单
Input.GetKey(KeyCode.Escape)
Input.GetKeyDown(KeyCode.Home)
// 返回键
if ( Application.platform == RuntimePlatform.Android &&(Input.GetKeyDown(KeyCode.Escape)))
{
//....
}
// Home键
if ( Application.platform == RuntimePlatform.Android &&(Input.GetKeyDown(KeyCode.Home) ))
{
//.....
}