Example #1
0
        public void OnButton(KeyCode button, ButtonState state)
        {
            InputListener l = GetStackTop();

            if (l != null)
            {
                try {
                    l.OnButton(button, state);
                } catch (Exception ex) {
                    log.Error(ex);
                }
            }
        }