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