Home » Developing U++ » UppHub » Scatter: new zoom and scroll mechanism!
Re: Scatter: new zoom and scroll mechanism! [message #28586 is a reply to message #28583] |
Wed, 08 September 2010 07:48   |
|
Your method is more universal!
It is a good idea because will be possibility to change the shortcut by users!
koldo wrote on Wed, 08 September 2010 01:00 | Hello Ion
I am not sure which is the best mouse behavior.
This is like the cooling system in an office. Nobody agrees and everyone is frozen or sweating.
I propose you another option. To have a list of keys, mouse buttons and actions. It is more complicated but everybody would agree.
Just a draft:
enum MouseActions {NO_ACTION, SCROLL_H_POS, SCROLL_H_NEG, SCROLL_V_POS, SCROLL_V_NEG, ZOOM_H_ENL, ZOOM_H_RED, ZOOM_V_ENL, ZOOM_V_RED, SHOW_INFO};
struct MouseBehaviour = {
bool ctrl;
bool alt;
bool shift;
bool left;
bool middle;
int middleWheel;
bool right;
int action;
};
Some of your proposals would be like these:
MouseBehaviour ionMap[] {
{false, false, false, false, false, 1, false, SCROLL_H_POS},
{false, false, false, false, false, -1, false, SCROLL_H_NEG},
{false, true, false, false, false, 1, false, SCROLL_V_POS},
{false, true, false, false, false, -1, false, SCROLL_V_NEG},
{false, false, false, false, false, 0, false, NO_ACTION}};
|
|
|
|
Goto Forum:
Current Time: Tue Jul 15 17:34:49 CEST 2025
Total time taken to generate the page: 0.03618 seconds
|