MickeyOoh

MickeyOoh

On Scenic/Nerves, how to implement mouse pointer input/positioning display?

I currently implemented mouse position input and display. position data from Driver passes to ViewPort and to Scene to add graph of mouse pointer. The mouse graph(arrow) pass through ViewPort and Driver, then it is rendered as a position arrow.
However, this has two problems.

  1. the positioning arrow of mouse moves quite slowly
  2. ViewPort doesn’t accept positioning click such as dropdown because it clicks mouse graph instead of dropdown, I guess.

I’d like to render the arrow only inside Driver itself likely the red color in the image. Or Are there any means to render the arrow to resolve the above two issues?

Most Liked

axelson

axelson

Scenic Core Team

FYI, Scenic 0.11 (currently in beta) includes mouse cursor support on Nerves:
https://github.com/boydm/scenic/blob/414104923f780e838a4e87ceb078569d2c6945da/guides/upgrading_to_v0.11.md
(although the cursor isn’t noted in the upgrade guide currently, but I just created a PR to add it)

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

Other popular topics Top

New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 55125 245
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44778 311
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44265 214
New

We're in Beta

About us Mission Statement