nklbdev / godot-enchanced-tile-map-editor

The addon fot Godot 3.5 that adds alternative rich tile map editor
MIT License
20 stars 4 forks source link

Support for Apple Magic Mouse Panning #28

Closed letsgamedev closed 1 year ago

letsgamedev commented 1 year ago

I looked into the _input events and when I use panning gestures with the apple magic mouse the event InputEventPanGesture is triggered. The only member of that is a delta. This could be used for panning in the map review.

https://docs.godotengine.org/de/stable/classes/class_inputeventpangesture.html

nklbdev commented 1 year ago

Thank you, Tom, great idea! I will implement it soon.

nklbdev commented 1 year ago

@letsgamedev, please, try current version out and give me feedback. I haven't Apple devices((. Unfortunately, on the trackpad of a laptop with Windows, I was unable to make a panoramic gesture.

I also reduced the zoom speed a little. I hope it will be more comfortable now.

letsgamedev commented 1 year ago

Hi, i made a pull request for this isssue. Just had to make little changes to your code.

nklbdev commented 1 year ago

@letsgamedev, thank you! It is the first pull request for me on GitHub!