CorsixTH / CorsixTH

Open source clone of Theme Hospital
Other
4.01k stars 362 forks source link

Add Ctrl/CMD + MouseClick support as in TH #2655

Open ARGAMX opened 6 days ago

ARGAMX commented 6 days ago

What feature or enhancement would you like to add?

In Original TH you can press Ctrl/CMD + left click on any object and get the same result if you would press right click. (CMD on Mac)

Ctrl + left click on staff - grab staff. Ctrl + left click on machine name in machine window - iterate through hospital hardware.

All these combination not working in CTH. But working in TH.

Since I am playing on touchpad this extremely useful in Original TH.

Also Mouse Dragging - when you press and hold Right Mouse Btn and drag your window view - very useful instrument. But on touchpad you can't enjoy this feature because for right-click you need to hold two fingers.

It would be more convenient if instead of press and hold Right Mouse Btn you could just hold the Ctrl button and use Mouse Dragging via Left Mouse Btn hold - which require only one finger on touchapd.

So the idea of this topic is to make: Ctrl (CMD) + Left Mouse Button = Right Mouse Button

How would this feature benefit the gameplay of CorsixTH?

More enjoyable game on touchpads/laptoprs.

Was the feature in the original game?

Yes

What version of CorsixTH are you using?

0.68.0 RC 2

MandrakeHorse commented 6 days ago

Alternative control schemes are always good to have from an accessibility viewpoint.

lewri commented 4 days ago

Mouse control changes are a very tricky subject in CorsixTH. Case in point: #2375 / #2469 I'd like to see this implemented as you state above. But personally would prefer we ironed out the current mouse functionality change first.

@TheCycoONE I'm not aware of our current hotkey methods supporting Mouse + keyboard presses combined to perform a single action?

TheCycoONE commented 1 day ago

It's not so bad, the engine would inform lua when the modifier was pushed and released, the down state would need to be tracked in ui, and the action adjusted there.

Ctrl and cmd are different keys. I think the mac used ctrl.

ARGAMX commented 1 day ago

On Mac CMD does mostly the same function as Ctrl on Windows do.

For example Ctrl+C and Ctrl+V on Windows is CMD+C and CMD+V on Mac and etc.

Ctrl on Mac is pretty useless key. Like Win key on Windows.

Win - Mac compare keys: Ctrl = CMD Win = Ctrl Alt = Opt