Exemplo n.º 1
0
 public bool InputHandler()
 {
     if (Input.GetMouseButtonDown(1) || Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.RightArrow) || Input.GetKeyDown(KeyCode.Return) || Input.GetKeyDown(KeyCode.KeypadEnter))
     {
         RequestLeave();
     }
     if (Input.GetKeyDown(KeyCode.PageUp))
     {
         historyWindow.Step(5f);
     }
     if (Input.GetKeyDown(KeyCode.PageDown))
     {
         historyWindow.Step(-5f);
     }
     if (Input.GetKeyDown(KeyCode.UpArrow))
     {
         historyWindow.Step(1f);
     }
     if (Input.GetKeyDown(KeyCode.DownArrow))
     {
         historyWindow.Step(-1f);
     }
     return(false);
 }