Plonq / bevy_rts_camera

RTS-style camera controls plugin for Bevy Engine
Apache License 2.0
59 stars 6 forks source link

Allow macos “middle mouse click” panning alternative using keyboard #19

Closed mgi388 closed 5 months ago

mgi388 commented 5 months ago

Out of the box, middle mouse click works great when your mouse is connected. When on the laptop trackpad only I don’t think panning has an equivalent action.

It would be cool if you could shift and move two fingers to pan. I think this is what blender does, but any action common to RTS games on laptops would work.

Plonq commented 5 months ago

Hi. Thanks for the suggestion, but I don't plan to implement something like that. You can pan 3 different ways - keyboard, edge, and drag. Mouse is only really required for drag (presuming you can't use left/right click), so it's not like it's unusable without a mouse or anything.

This plugin is intentionally very simple and doesn't try to cover every use case. If you need advanced controls, I suggest rolling your own controller instead of using the built in one.

mgi388 commented 5 months ago

@Plonq of course, just a suggestion. Thanks.