Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

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}};


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cypher package - An extensible Encryption package
Next Topic: PlotCtrl revisited
Goto Forum:
  


Current Time: Tue Jul 15 17:34:49 CEST 2025

Total time taken to generate the page: 0.03618 seconds