001package react4j.dom.events;
002
003import javax.annotation.Nonnull;
004import jsinterop.annotations.JsOverlay;
005import jsinterop.annotations.JsPackage;
006import jsinterop.annotations.JsType;
007
008@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "Object" )
009@SuppressWarnings( "unused" )
010public class TouchEvent
011  extends SyntheticEvent<Event>
012{
013  private boolean altKey;
014  private TouchList changedTouches;
015  private boolean ctrlKey;
016  private boolean metaKey;
017  private boolean shiftKey;
018  private TouchList targetTouches;
019  private TouchList touches;
020
021  public native boolean getModifierState( @Nonnull String key );
022
023  @JsOverlay
024  public final boolean isAltKey()
025  {
026    return altKey;
027  }
028
029  @JsOverlay
030  public final TouchList getChangedTouches()
031  {
032    return changedTouches;
033  }
034
035  @JsOverlay
036  public final boolean isCtrlKey()
037  {
038    return ctrlKey;
039  }
040
041  @JsOverlay
042  public final boolean isMetaKey()
043  {
044    return metaKey;
045  }
046
047  @JsOverlay
048  public final boolean isShiftKey()
049  {
050    return shiftKey;
051  }
052
053  @JsOverlay
054  public final TouchList getTargetTouches()
055  {
056    return targetTouches;
057  }
058
059  @JsOverlay
060  public final TouchList getTouches()
061  {
062    return touches;
063  }
064}