Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 15th, 2012  |  syntax: Java  |  size: 0.69 KB  |  views: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package game.gui.niftyinput;
  2.  
  3. import de.lessvoid.nifty.NiftyInputConsumer;
  4.  
  5. /**
  6.  * @author Michel Montenegro
  7.  */
  8. public class MouseEvent {
  9.         private int mouseX;
  10.         private int mouseY;
  11.         private int mouseWheel;
  12.         private int button;
  13.         private boolean buttonDown;
  14.  
  15.         public MouseEvent(final int mouseX, final int mouseY,
  16.                         final boolean mouseDown, final int mouseButton) {
  17.                 this.mouseX = mouseX;
  18.                 this.mouseY = mouseY;
  19.                 this.buttonDown = mouseDown;
  20.                 this.button = mouseButton;
  21.                 this.mouseWheel = 0;
  22.         }
  23.  
  24.         public void processMouseEvents(
  25.                         final NiftyInputConsumer inputEventConsumer) {
  26.                 inputEventConsumer.processMouseEvent(mouseX, mouseY, mouseWheel,
  27.                                 button, buttonDown);
  28.         }
  29. }
clone this paste RAW Paste Data