MCPcopy Create free account
hub / github.com/arduino/Arduino / mousePressed

Method mousePressed

app/src/processing/app/EditorToolbar.java:434–449  ·  view source on GitHub ↗
(MouseEvent e)

Source from the content-addressed store, hash-verified

432
433
434 public void mousePressed(MouseEvent e) {
435
436 // jdf
437 if (!isEnabled())
438 return;
439
440 final int x = e.getX();
441 final int y = e.getY();
442
443 int sel = findSelection(x, y);
444 ///if (sel == -1) return false;
445 if (sel == -1) return;
446 currentRollover = -1;
447
448 handleSelectionPressed(sel, e.isShiftDown(), x, y);
449 }
450
451 public void mouseClicked(MouseEvent e) {
452 }

Callers

nothing calls this directly

Calls 2

findSelectionMethod · 0.95

Tested by

no test coverage detected