Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse events for buttons beyond normal 3 do not report uniquely. #258

Open
1 task done
crertel opened this issue Jan 6, 2022 · 0 comments
Open
1 task done

Mouse events for buttons beyond normal 3 do not report uniquely. #258

crertel opened this issue Jan 6, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@crertel
Copy link
Contributor

crertel commented Jan 6, 2022

Checklist

  • Check other issues and make sure that it is not reported yet.

Versions and Environment

Elixir:

# elixir -v
Erlang/OTP 24 [erts-12.0.3] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit]

Elixir 1.12.2 (compiled with Erlang/OTP 24)

Erlang:

# erl -v
Erlang/OTP 24 [erts-12.0.3] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit]

Scenic:

# mix deps | grep scenic
* scenic 0.11.0-beta.0 (Hex package) (mix)
  locked at 0.11.0-beta.0 (scenic) cace35ef
* scenic_driver_local 0.11.0-beta.0 (Hex package) (mix)
  locked at 0.11.0-beta.0 (scenic_driver_local) 8812762a

OS:

Linux [hostname redacted] 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Steps to reproduce

Sample scene:

defmodule Example.Scene do
  @moduledoc """
  This is a minimal scene that will publish received events to the console.
  """
  use Scenic.Scene

  @input_classes [:cursor_button,
   :cursor_scroll,
   :cursor_pos]

   @impl Scenic.Scene
  def init(scene, _param, _opts) do
    :ok = request_input(scene, @input_classes)
    { :ok, scene }
  end

  @impl Scenic.Scene
  def handle_input( evt, _ctx, scene ) do
    IO.inspect(evt, label: "Input: ")
    {:noreply, scene}
  end
end

Expected Behavior

Mouse buttons that aren't left, right, or middle click should have unique button identifiers.

Actual Behavior

Mouse buttons beyond the normal three always report as :unknown.

@crertel crertel added the bug Something isn't working label Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant