Esempio n. 1
0
        public static TextEvent Create(int deviceId, char character, double time)
        {
            var inputEvent = new TextEvent();

            inputEvent.baseEvent = new InputEvent(Type, InputEvent.kBaseEventSize + 4, deviceId, time);
            inputEvent.character = character;
            return(inputEvent);
        }
Esempio n. 2
0
        public static TextEvent Create(int deviceId, int character, double time = -1)
        {
            var inputEvent = new TextEvent
            {
                baseEvent = new InputEvent(Type, InputEvent.kBaseEventSize + 4, deviceId, time),
                character = character
            };

            return(inputEvent);
        }
Esempio n. 3
0
        public static TextEvent Create(int deviceId, char character, double time)
        {
            ////TODO: detect and throw when if character is surrogate
            var inputEvent = new TextEvent
            {
                baseEvent = new InputEvent(Type, InputEvent.kBaseEventSize + 4, deviceId, time),
                character = character
            };

            return(inputEvent);
        }