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

de.lessvoid.nifty.elements.events.NiftyMouseWheelEvent Maven / Gradle / Ivy

Go to download

Nifty GUI is a Java Library that supports the building of interactive user interfaces for games or similar applications. It utilizes OpenGL for rendering and it can be easily integrated into many rendering systems. The configuration of the GUI is stored in xml files with little supporting Java code. In short Nifty helps you to layout stuff, display it in a cool way and interact with it :)

There is a newer version: 1.4.3
Show newest version
package de.lessvoid.nifty.elements.events;

import de.lessvoid.nifty.NiftyEvent;
import de.lessvoid.nifty.elements.Element;
import de.lessvoid.nifty.input.NiftyMouseInputEvent;

import javax.annotation.Nonnull;

public class NiftyMouseWheelEvent implements NiftyEvent {
  private final Element element;
  private final int mouseWheel;

  public NiftyMouseWheelEvent(final Element element, @Nonnull final NiftyMouseInputEvent source) {
    this.element = element;
    this.mouseWheel = source.getMouseWheel();
  }

  public Element getElement() {
    return element;
  }

  public int getMouseWheel() {
    return mouseWheel;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy