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); }
public static TextEvent Create(int deviceId, char character, double time = -1) { ////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); }