mapeditor / mapeditor/tiled

Scripting - Tools: Add a method to capure mouseWheel up/down

Open
#3,244 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

Right now tools have a function mouseMoved(x,y,modifiers) that we can use to capture movement. We also have a method for mouseButton-Press. I think it would be really nice if we could have a similar method for mouse wheel up/down. For example I wrote a tool that can place an object that uses a ellipse as shape. Using mouse wheel up/down I want to pre-define the radius before actually placing the object.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing mouseMoved(x,y,modifiers) and mouseButton-Press callbacks used by tools. Determine where scripted tool mouse events are exposed, then add wheel up/down handling so a tool can adjust a value before placing an object; done means a scripting tool can receive both wheel directions reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.