# Mouse events + Luxor

**URL:** <https://discourse.julialang.org/t/mouse-events-luxor/57184>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [March 15, 2021, 9:11am UTC](https://discourse.julialang.org/t/mouse-events-luxor/57184 "2021-03-15T09:11:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aferref](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@aferref](https://discourse.julialang.org/u/aferref)\
**Post date:** [March 15, 2021, 9:11am UTC](https://discourse.julialang.org/t/mouse-events-luxor/57184/1 "2021-03-15T09:11:24Z")

</div>

Hello, I need to get the coordinates of the mouse using Luxor package but I have not found anything in the documentation. Is it posible?.  
I would like to make an animation like in Processing with @play of Luxor.  
Best regards.

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [March 15, 2021, 9:17am UTC](https://discourse.julialang.org/t/mouse-events-luxor/57184/2 "2021-03-15T09:17:21Z")

</div>

Normally Luxor.jl has no concept of mice - or even of human beings - so you’d have to introduce an intermediary to help it communicate. MiniFB.jl works well. If you look at the MiniFB documentation, you’ll see how to set up mouse callbacks.

I’ve also seen an attempt to use GTK ([https://github.com/nodrygo/GtkLuxorNaiveDemo](https://github.com/nodrygo/GtkLuxorNaiveDemo)).

In general I’d recommend Makie.jl for interactive and reactive graphics; Luxor.jl tends towards the sedentary end of things.

---

<div class="post-metadata">

**Author:** ![aferref](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@aferref](https://discourse.julialang.org/u/aferref)\
**Post date:** [March 15, 2021, 12:35pm UTC](https://discourse.julialang.org/t/mouse-events-luxor/57184/3 "2021-03-15T12:35:09Z")

</div>

Thanks, I’m looking MiniFB and I think it has what I need. I will also try Makie.
