Pārlūkot izejas kodu

Print specific information on the object clicked for debugging reasons

hutattedonmyarm 12 gadus atpakaļ
vecāks
revīzija
4793c1f290
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4
    0
      CubeControl/Led3D.java

+ 4
- 0
CubeControl/Led3D.java Parādīt failu

@@ -195,8 +195,12 @@ public class Led3D extends MouseAdapter {
195 195
 							}
196 196
 						}
197 197
 					}
198
+				} else {
199
+					System.out.println("Clicked, but not a sphere. Clicked object: " + p.getClass().getName());
198 200
 				}
199 201
 			}
202
+		} else {
203
+			System.out.println("Clicked, but hit nothing");
200 204
 		}
201 205
 	}
202 206
 

Notiek ielāde…
Atcelt
Saglabāt