Ver código fonte

Print specific information on the object clicked for debugging reasons

hutattedonmyarm 12 anos atrás
pai
commit
4793c1f290
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      CubeControl/Led3D.java

+ 4
- 0
CubeControl/Led3D.java Ver arquivo

@@ -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
 

Carregando…
Cancelar
Salvar