logic gate button
This commit is contained in:
parent
0c76f3cdf6
commit
e88244bc9d
29 changed files with 518 additions and 107 deletions
src/modules/simulationRenderer/classes
|
@ -77,6 +77,9 @@ export class SimulationRenderer {
|
|||
const { transform, id, pins } = gates[index]
|
||||
|
||||
if (pointInSquare(worldPosition, transform)) {
|
||||
// run function
|
||||
gates[index].onClick()
|
||||
|
||||
this.mouseManager.clear(worldPosition[0])
|
||||
|
||||
this.mouseState |= 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue