82 |
this.button = button; |
this.button = button; |
83 |
} |
} |
84 |
|
|
85 |
|
private String type2str(int type) { |
86 |
|
switch(type) { |
87 |
|
case MOUSE_PRESSED: return "pressed"; |
88 |
|
case MOUSE_RELEASED: return "released"; |
89 |
|
case MOUSE_CLICKED: return "clicked"; |
90 |
|
case MOUSE_DRAGGED: return "dragged"; |
91 |
|
case MOUSE_WHEEL: return "wheel"; |
92 |
|
default: |
93 |
|
return "unknown type"; |
94 |
|
} |
95 |
|
} |
96 |
|
|
97 |
public String toString() { |
public String toString() { |
98 |
return "[VobMouseEvent: "+type+" "+x+" "+y+" " |
return "[VobMouseEvent: ["+type2str(type)+"] "+x+" "+y+" " |
99 |
+wheelDelta+" "+modifiers+" "+button+"]"; |
+wheelDelta+" "+modifiers+" "+button+"]"; |
100 |
} |
} |
101 |
|
|