[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ff-cvs] libvob/org/nongnu/libvob VobMouseEvent.java
From: |
Matti Katila |
Subject: |
[ff-cvs] libvob/org/nongnu/libvob VobMouseEvent.java |
Date: |
Mon, 18 Aug 2003 11:21:16 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Branch:
Changes by: Matti Katila <address@hidden> 03/08/18 11:21:16
Modified files:
org/nongnu/libvob: VobMouseEvent.java
Log message:
more debug
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/org/nongnu/libvob/VobMouseEvent.java.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
Patches:
Index: libvob/org/nongnu/libvob/VobMouseEvent.java
diff -u libvob/org/nongnu/libvob/VobMouseEvent.java:1.3
libvob/org/nongnu/libvob/VobMouseEvent.java:1.4
--- libvob/org/nongnu/libvob/VobMouseEvent.java:1.3 Sat Aug 9 10:39:43 2003
+++ libvob/org/nongnu/libvob/VobMouseEvent.java Mon Aug 18 11:21:15 2003
@@ -82,8 +82,20 @@
this.button = button;
}
+ private String type2str(int type) {
+ switch(type) {
+ case MOUSE_PRESSED: return "pressed";
+ case MOUSE_RELEASED: return "released";
+ case MOUSE_CLICKED: return "clicked";
+ case MOUSE_DRAGGED: return "dragged";
+ case MOUSE_WHEEL: return "wheel";
+ default:
+ return "unknown type";
+ }
+ }
+
public String toString() {
- return "[VobMouseEvent: "+type+" "+x+" "+y+" "
+ return "[VobMouseEvent: ["+type2str(type)+"] "+x+" "+y+" "
+wheelDelta+" "+modifiers+" "+button+"]";
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [ff-cvs] libvob/org/nongnu/libvob VobMouseEvent.java,
Matti Katila <=