[Oberon] NW programming style
Richard Hable
informujo at aon.at
Tue Sep 6 20:31:14 CEST 2016
Am 2016-09-06 um 11:32 schrieb Alexander Ilin:
> You are forgetting that a left-handed person would prefer to have button 3 as the primary button (being under his/her index finger).
Nope, support for left handers is yet another reason not to give names
like ML, MM, and MR to the mouse buttons, because the left hander will
prefer ML to be on the right side etc.
> But number 1 is hard-coded.
> Good luck searching for that number to replace it with 3 - which would be a trivial operation with named constants, and could even be loaded from a configuration file.
Supporting left handers should never require to search and replace every
single reference to a mouse button within application source code.
Instead, a simple flag could be provided to switch between enumerating
the buttons from left to right to the opposite direction.
Richard
More information about the Oberon
mailing list