mapeditor / tiled

Flexible level editor
https://www.mapeditor.org/
Other
11.24k stars 1.76k forks source link

Remap mouse wheel click as ERASE TILE #1068

Open caiolopez opened 9 years ago

bjorn commented 9 years ago

Well, that's tricky. It would have to be added as an option, and I don't like adding such very specific options. The alternative is to allow arbitrary remapping of mouse buttons and this of course comes with its own large set of problems to solve.

I would like to make keyboard shortcuts and possibly also mouse buttons configurable at some point, but this will take a while.

caiolopez commented 9 years ago

Yeah, I see, a big feature with low priority for now! Would a non-toggle erase function like "hitting del to erase the tile under the cursor" be easier/better to implement? I see that the shortcut for it isn't taken yet. That way the user can both save time by not switching back and forth from two different toggle tools every time he makes a mistake, and map it to any other input he/she sees fit using 3rd party software, if needed. Thank you!

bjorn commented 9 years ago

Hmm, well the Delete shortcut is of course taken.

I wonder if there would be some way to make all tools usable temporarily. So for eraser you normally press E, but what if by using press-and-hold E it would switch back to the previous tool afterwards? I'm not currently sure what other issues that would open up, but I think it may work.

caiolopez commented 9 years ago

That's how the "eye dropper tool" works in photoshop. If you push and release "I", it will toggle, but if you you just hold "I" and click it will pick the clicked color and then switch back to the previous tool automatically upon key release. Works pretty well, I think.

Sent from my iPhone

On Sep 5, 2015, at 16:46, Thorbjørn Lindeijer notifications@github.com wrote:

Hmm, well the Delete shortcut is of course taken.

I wonder if there would be some way to make all tools usable temporarily. So for eraser you normally press E, but what if by using press-and-hold E it would switch back to the previous tool afterwards? I'm not currently sure what other issues that would open up, but I think it may work.

— Reply to this email directly or view it on GitHub.

bjorn commented 9 years ago

@caiolopez Ok, it's cool that Photoshop does this already since it indeed indicates that it can work and it means people could already be intuitively expecting this feature. But did they special-case this for the eye dropper or does it work more generally?

wayfu commented 9 years ago

It works on all tools as far as I know.

caiolopez commented 9 years ago

indeed, brush, eraser and everybody else work like that in Photoshop.