yash-p-amd / grafx2

Automatically exported from code.google.com/p/grafx2
1 stars 0 forks source link

Mouse capacities #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
(Tossing ideas around)
SDL cannot catch tablet-specific values, unfortunately ...
However, it reports 3rd button and mouse wheel, and both are very common 
hardware nowadays.

3rd button ideas:
Some people may like Color picker, or Magnify on/off

Wheel ideas:
* next forecolor, previous forecolor
* bigger brush, smaller brush (concerns internal brushs like square, 
round, slash...)

It may be the most useful to let the user assign any function to any of 
those 3 "buttons". Gfxcfg can be modified to let the user set his mouse 
button preferences.

Original issue reported on code.google.com by yrizoud on 9 Oct 2008 at 2:03

GoogleCodeExporter commented 8 years ago
The wheel could be used for... scrolling the picture :) Or changing the zoom 
factor.

I don't have a 3rd button on my laptop... but i should probably get an usb 
mouse 
anyways, for graphing :)

Original comment by pulkoma...@gmail.com on 9 Oct 2008 at 5:55

GoogleCodeExporter commented 8 years ago
SDL 1.3 will handle touchscreens and possibly tablets support... but it's not 
available yet :)

Original comment by pulkoma...@gmail.com on 21 Oct 2008 at 3:23

GoogleCodeExporter commented 8 years ago
About mouse buttons, in Issue 42 fallenblood suggested taking into account 
'shift 
modifiers', like scroll/shift+scroll for scrolling along x/y, alt+scroll for 
zoom 
and ctrl+scroll for brush size

---
About tablet, it's already great that our port accepts tablets as mice, I can't 
use 
my Wacom Graphire tablet in Grafx2 96.5% (DOS) because all clicks minimize the 
program and return me to the desktop.
I don't miss pressure sensitivity in GrafX2, as it's for drawing the exact 
right 
pixels with the exact right color. For pressure-sensitive brush size or alpha, 
there 
are more suitable tools like the excellent Project Dogwaffle, or Gimp.

Original comment by yrizoud on 23 Oct 2008 at 4:18

GoogleCodeExporter commented 8 years ago
It still could be nice as a replacement for wait_vbl, ie in the spray and the 
sliders speed.
And it may open other ideas.

Using the modifier can be done, there is already some code translating keys to 
mouse 
motion in get_input. Scroll is already done there, brush size can be added 
without 
too much effort i think, but i'm not sure for zoom... changing the zoom factor 
is 
quite a complex operation involving opening a window wich does many things in 
its 
own event loop. Moving a part of that to a function will be required.

Original comment by pulkoma...@gmail.com on 23 Oct 2008 at 4:25

GoogleCodeExporter commented 8 years ago
> changing the zoom factor is quite a complex operation
> involving opening a window wich ...
..or just use the existing shortcut action:
  {85,
  "Zoom in",
  "Increase magnifying factor.",
  "",
  true,
  SDLK_KP_PLUS}, // Grey +
  {86,
  "Zoom out",
  "Decrease magnifying factor.",
  "",
  true,
  SDLK_KP_MINUS}, // Grey -

Original comment by yrizoud on 23 Oct 2008 at 6:49

GoogleCodeExporter commented 8 years ago
Oh nice :)
No problem adding it then :)

Original comment by pulkoma...@gmail.com on 23 Oct 2008 at 7:13

GoogleCodeExporter commented 8 years ago
Issue 42 has been merged into this issue.

Original comment by pulkoma...@gmail.com on 16 Dec 2008 at 10:19

GoogleCodeExporter commented 8 years ago

Original comment by pulkoma...@gmail.com on 16 Dec 2008 at 10:30

GoogleCodeExporter commented 8 years ago

Original comment by pulkoma...@gmail.com on 14 Jan 2009 at 4:44

GoogleCodeExporter commented 8 years ago

Original comment by pulkoma...@gmail.com on 16 Jan 2009 at 9:01

GoogleCodeExporter commented 8 years ago

Original comment by pulkoma...@gmail.com on 21 Jan 2009 at 11:06

GoogleCodeExporter commented 8 years ago
The new get_input can send events for the middle button, and other are easy to 
add.
We also support multiple buttons at the same time.

So feel free to get strated on these configurable mouse shortcuts :)

Original comment by pulkoma...@gmail.com on 31 Jan 2009 at 12:45

GoogleCodeExporter commented 8 years ago
Working on it, as well as joystick support and customization.

I'm not going to implement "keyboard repetition" on middle mouse button (Maybe 
later,
but for now, keep it simple). Mouse wheel doesn't have the problem since each 
"wheel
step" calls the function once. Perfect for zooming in and out a few steps at a 
time.

I also implemented mousewheel scrolling in all screens that had a single list:
Text(font choice), Load/Save (file), Help (text). Scrolling is 3 lines at a 
time,
which looks fine.

Original comment by yrizoud on 5 Feb 2009 at 3:31

GoogleCodeExporter commented 8 years ago

Original comment by yrizoud on 9 Feb 2009 at 12:24