Robert wrote:I would like to see the mapping table in PSI even more explicit; something like:
But even this is confusing. Is "left" a modifier or not?
This is a difficult topic.
A table of mouse buttons and modifiers may better fit into Text/Docu/User-Man.odc, which already has a table of keyboard shortcuts.
The existing Text/Docu/User-Man.odc is already Windows specific. For a user it would be confusing to see a table with HostPorts names and values.
This is low-level info for developers.
'left' is a modifier, but a platform specific modifier.
That's why it is defined in HostPorts and not in Controllers.
On a system with a one button mouse, such as the Mac, every modifier needs to be
done with the keyboard. I think this was the reason for not exporting mouse buttons in Controllers
but to use an abstraction in between. Unfortunately this has not been done in a clean way
and this issue is about cleaning it up.
> 1 - Docu/Tut-6. " For the mapping of platform specific keys see platform specific modifiers." An active link to the PSI section would be good. I would like to see a "Target" View in the PSI so I can easily link to it in my own Docus.
This is an active link, Isn't it?
> 2 - Docu/User-Man. "different sizes, hold down the alt key (or, alternatively, use the middle mouse button), and the ...
What do you mean with 'different sizes'?
> Ideally every reference to alt or ctrl would be replaced by a similar expression?
I didn't want to rewrite the complete text docu. In 1.6 it had alternating subsections for Windows and Mac, in 1.7 it has been made Windows only.
> 3 - Is it a good idea to merge the alt key and middle mouse ideas? This means the programmer does not have the option (in a platform independent way) to handle them differently.
This is true. Abstraction is always a limitation. On the other side it has the advantage of regularization or standardization. If you use 'pick' you get
the same pattern everywhere. It was taken from drag & pick. This was possible because there were no contradictions with different usages of the middle mouse button.
Furthermore, I cannot see any alternative except giving up the abstraction.
- Josef