CorsixTH icon indicating copy to clipboard operation
CorsixTH copied to clipboard

[Feature] Add Ctrl/CMD + MouseClick support as in TH

Open ARGAMX opened this issue 1 year ago • 7 comments

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

ARGAMX avatar Oct 04 '24 16:10 ARGAMX

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

MandrakeHorse avatar Oct 04 '24 17:10 MandrakeHorse

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?

lewri avatar Oct 06 '24 20:10 lewri

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.

TheCycoONE avatar Oct 09 '24 02:10 TheCycoONE

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

ARGAMX avatar Oct 09 '24 07:10 ARGAMX

My understanding is the simulated right click on Mac is conventionally Ctrl + click though. Should it support both, or ctrl everywhere maybe.

I don't know what the original TH for Mac did here, I'm not sure it matters because Ctrl would be less surprising.

The other place Ctrl is used on Mac equivalent to other operating systems is terminal escape codes / readline shortcuts.

TheCycoONE avatar Oct 11 '24 12:10 TheCycoONE

In original Theme Hospital right click works via CMD + Click. And this is combination which user expects.

ARGAMX avatar Oct 11 '24 16:10 ARGAMX

And this is combination which user expects.

That's mind reading, but ok, if it's what the original did it's worth at least an option.

TheCycoONE avatar Oct 12 '24 01:10 TheCycoONE