All Downloads are FREE. Search and download functionalities are using the official Maven repository.

react4j.dom.events.TouchEvent Maven / Gradle / Ivy

There is a newer version: 0.196
Show newest version
package react4j.dom.events;

import akasha.TouchList;
import javax.annotation.Nonnull;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "Object" )
@SuppressWarnings( "unused" )
public class TouchEvent
  extends SyntheticEvent
{
  private boolean altKey;
  private TouchList changedTouches;
  private boolean ctrlKey;
  private boolean metaKey;
  private boolean shiftKey;
  private TouchList targetTouches;
  private TouchList touches;

  public native boolean getModifierState( @Nonnull String key );

  @JsOverlay
  public final boolean isAltKey()
  {
    return altKey;
  }

  @JsOverlay
  public final TouchList getChangedTouches()
  {
    return changedTouches;
  }

  @JsOverlay
  public final boolean isCtrlKey()
  {
    return ctrlKey;
  }

  @JsOverlay
  public final boolean isMetaKey()
  {
    return metaKey;
  }

  @JsOverlay
  public final boolean isShiftKey()
  {
    return shiftKey;
  }

  @JsOverlay
  public final TouchList getTargetTouches()
  {
    return targetTouches;
  }

  @JsOverlay
  public final TouchList getTouches()
  {
    return touches;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy