Example #1
0
        InputController.InputType AndroidActionToGenericAction(KeyEventActions a)
        {
            switch (a)
            {
            default:
            case KeyEventActions.Down: return(InputController.InputType.Down);

            case KeyEventActions.Multiple: return(InputController.InputType.Repeat);

            case KeyEventActions.Up: return(InputController.InputType.Up);
            }
        }
Example #2
0
        public override bool DispatchKeyEvent(KeyEvent KEvent)
        {
            KeyEventActions keyaction = KEvent.Action;

            if (keyaction == KeyEventActions.Down)
            {
                Keycode keycode = KEvent.KeyCode;
                if (Pressed != null)
                {
                    Pressed(keycode);
                }
            }
            return(base.DispatchKeyEvent(KEvent));
        }
 public ScanBarEvent(long downTime, long eventTime, KeyEventActions action, Keycode code, int repeat, MetaKeyStates metaState, int deviceId, int scancode, KeyEventFlags flags, InputSourceType source) : base(downTime, eventTime, action, code, repeat, metaState, deviceId, scancode, flags, source)
 {
 }
 public ScanBarEvent(long downTime, long eventTime, KeyEventActions action, Keycode code, int repeat, MetaKeyStates metaState, int deviceId, int scancode) : base(downTime, eventTime, action, code, repeat, metaState, deviceId, scancode)
 {
 }
 public ScanBarEvent(long downTime, long eventTime, KeyEventActions action, Keycode code, int repeat) : base(downTime, eventTime, action, code, repeat)
 {
 }
 public ScanBarEvent(KeyEventActions action, Keycode code) : base(action, code)
 {
 }