It demonstrates how one can use mouse events in engo
.
These lines are key in this demo:
common.MouseComponent
within the definition oftype Guy
, which adds aMouseComponent
which stores information (such as hover events).w.AddSystem(&common.MouseSystem{})
, which adds theMouseSystem
to thisScene
;