internal void SetKeyEventArgs(EInputDeviceEvent evt, KeyEventArgs args) { __cPrevious._event = __cCurrent._event; __cPrevious.keyboard = __cCurrent.keyboard; __cCurrent._event = evt; __cCurrent.keyboard = args; }
internal void SetMouseEventArgs(EInputDeviceEvent evt, MouseEventArgs args) { __cPrevious._event = __cCurrent._event; __cPrevious.mouse = __cCurrent.mouse; __cCurrent._event = evt; __cCurrent.mouse = args; if (__bDrag) { if (__cCurrent._event == EInputDeviceEvent.MouseUp) { __bDrag = false; __bClick = true; } } else { if (__cCurrent._event == EInputDeviceEvent.MouseMove && __cPrevious._event == EInputDeviceEvent.MouseDown) { __bDrag = true; __bClick = false; } } }