files/en-us/web/api/uievent/index.md
{{APIRef("UI Events")}}
The UIEvent interface represents simple user interface events. It is part of the UI Events API, which includes various event types and interfaces related to user interactions.
UIEvent derives from {{domxref("Event")}}. Although the {{domxref("UIEvent.initUIEvent()")}} method is kept for backward compatibility, you should create a UIEvent object using the {{domxref("UIEvent.UIEvent", "UIEvent()")}} constructor.
Several interfaces are direct or indirect descendants of this one: {{domxref("MouseEvent")}}, {{domxref("TouchEvent")}}, {{domxref("FocusEvent")}}, {{domxref("KeyboardEvent")}}, {{domxref("WheelEvent")}}, {{domxref("InputEvent")}}, and {{domxref("CompositionEvent")}}.
{{InheritanceDiagram}}
UIEvent object.This interface also inherits properties of its parent, {{domxref("Event")}}.
long with details about the event, depending on the event type.InputDeviceCapabilities interface, which provides information about the physical device responsible for generating a touch event.keyCode of the key pressed, or the character code (charCode) for an alphanumeric key pressed.This interface also inherits methods of its parent, {{domxref("Event")}}.
UIEvent object. If the event has already been dispatched, this method does nothing.{{Specifications}}
{{Compat}}