Home » Developing U++ » UppHub » Scatter: new zoom and scroll mechanism!
Re: Scatter: new zoom and scroll mechanism! [message #28583 is a reply to message #28571] |
Wed, 08 September 2010 00:00   |
 |
koldo
Messages: 3437 Registered: August 2008
|
Senior Veteran |
|
|
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}};
Best regards
IƱaki
|
|
|
Goto Forum:
Current Time: Fri Jul 18 03:43:49 CEST 2025
Total time taken to generate the page: 0.03792 seconds
|