summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/MouseDeltaEvent.java
blob: b530b3c258e05f242a1d74a698a6b35249f84c22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package NET.worlds.scape;

public class MouseDeltaEvent extends MouseEvent {
   public int dx;
   public int dy;

   public MouseDeltaEvent(int time, WObject target, int dx, int dy) {
      super(time, target, 0, 0);
      this.dx = dx;
      this.dy = dy;
   }

   @Override
   public boolean deliver(Object o) {
      return o instanceof MouseDeltaHandler && ((MouseDeltaHandler)o).handle(this) ? true : super.deliver(o);
   }
}