This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Tools for secondary input devices?

Tags: None
(comma "," separated)
arturg
Registered Member
Posts
27
Karma
0

Tools for secondary input devices?

Thu Nov 05, 2015 10:54 pm
Hi, is there any chance to add support for secondary input devices or some sort of api for secondary tools?
a way to register secondary tool plugins similar to the primary tools which would add them to a button group on the top Toolbar or a separate Toolbar for secondary tools
so that a user can change the active secondary tool and if there are more then one secondary input device there should be a way to map them to a tool and have more then
one secondary tool active at the same time e.g. left mouse click maps the tool to the first secondary input device, right mouse click maps it to the second secondary input device
and if there are more then two, right mouse click shows a context menu with all secondary input devices and also a tool option docker.

secondary input devices like:
Spacenavigator, (btw could you add the calligra spacenavigator plugin to kritas new repo?)
midi or osc controller,
smartphone or tablet with a midi or osc controller app like Lemur or TouchOSC
obviously some input devices have more controls then other so maybe there should be a way to map the device to a virtual device with predefined controls so you could map
a midi/osc controller to one or more virtual devices.

some secondary tools:
primary tool helper
drawing sensors
canvas controller
etc

for example here is a canvas controller plugin im currently working on
Dock image1
Dock image2
Dock image3
Dock image4

here are some test videos while using a spacenavigator
canvas panning
canvas zooming
canvas rotation
reset actions
linking modes
device buttons not really part of the plugin and more of a hack,
as i have only the 2 button spacenavigator i cant test all,
it supports 36 buttons which are mapped to keyboard shortcuts as ctrl+alt+0 - 9 and ctrl+alt+a - z.
some future improvments could be, to add short press and long press button actions and shortcuts selectable by the user,
for this it would be usefull if the global shortcut dialog and the canvas input actions would handle key events in a similar way
as it is now i have to send three events instead of one to make it workable with both.

using tools
this plugin depends on opengl canvas and the tool to be a KisTool so it doesnt work with
the Shape Handling Tool and the Artistic Text Tool which seems to have a bug while using a stylus,
the Color Picker Tool is missing a hover mode change in endPrimaryAction,
the Outline Selection Tool preview gets confused while zooming,
and no tool works really well with canvas rotation e.g. Rectangle Tool, Circle Tool, Rectancle Selection Tool, Circle Selection Tool
also brush rotation unless its by design
zoom issue
tablet events (works fine with a mouse) get blocked while zooming in paint mode, which is fixed by hiding Docker Titlebars
mouse issue
no input in paint mode while not moving the mouse
rotation issue
i assume its basically the same issue with a stylus while holding it as still as possible then using fast canvas rotation
the stylus just updates its position more frequently.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
We can only add the space navigator plugin if there is someone who will maintain it. There is no developer in the community who has one of those devices anymore -- we got three, but they all disappeared together with the Karbon maintainer, the Charts maintainer and so on. If there is someone who has the device and can commit to testing releases with and fixing bugs, yes.
arturg
Registered Member
Posts
27
Karma
0
Yeah i assumed that i was probably the only one that used the spacenavigator plugin as its optional and (linux only?) and understand that you cant accept code that you cant test so i have to mantain a patch/branch myself for the time being.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]