Bug 342105 - [HUION] Cannot right click with the Pen of Huion H610 Pro
Summary: [HUION] Cannot right click with the Pen of Huion H610 Pro
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: Tablets (tablet issues are only very rarely bugs in Krita!) (show other bugs)
Version: 2.8.3
Platform: unspecified Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 338352 339491 360409 360560 364256 366474 372790 378274 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-12-22 00:58 UTC by Patrick
Modified: 2017-07-18 08:41 UTC (History)
28 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-13727-0.html (1.72 KB, text/html)
2015-01-03 04:07 UTC, Patrick
Details
PATRICK-I7-WIN8.LOG (1.80 MB, application/octet-stream)
2015-01-04 22:15 UTC, Patrick
Details
attachment-15011-0.html (1.61 KB, text/html)
2015-01-09 16:24 UTC, Patrick
Details
MouseLeftClickAndRightClick.LOG (51.26 KB, application/octet-stream)
2015-01-10 02:42 UTC, Patrick
Details
Stroke_RightClick_RightClickMove.LOG (2.30 MB, application/octet-stream)
2015-01-10 02:42 UTC, Patrick
Details
attachment-28035-0.html (1.28 KB, text/html)
2015-01-10 17:06 UTC, Patrick
Details
log file of huion h610 pro press and release buttons (3.07 MB, text/plain)
2015-01-26 14:58 UTC, mafediz
Details
Thiébaut's logs (1.58 KB, text/plain)
2016-03-17 21:30 UTC, Thiébaut
Details
attachment-30623-0.html (2.03 KB, text/html)
2016-08-24 07:57 UTC, Joseph Richards
Details
Debug log only using right and middle button (40.14 KB, text/plain)
2016-12-16 17:27 UTC, bretema3d
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick 2014-12-22 00:58:07 UTC
Hello.
I am using Krita x64 2.8.3 on Windows 8.1 with a tablet "Huion H610 Pro Graphics". When I setup any of the button on the pen to do a right click, it does not work with Krita. It does work with Photoshop or any other software but not Krita. I am expecting to see the default popup that allows to select brushed and color. In fact, it does work with the right click of my mouse, not the pencil.

Reproducible: Always

Steps to Reproduce:
1. Open Krita
2. Click the "Right Click" button of the Huion H610 Pro Graphics Pen
3. Nothing happen

Actual Results:  
Nothing. I do see the green light flashing on the tablet. I know that the tablet is sending the keystroke but nothing appear in Krita.

Expected Results:  
Display the circle popup with the brushes and colors.

I know it is not the tablet the problem because it generates the right click anywhere. Even in that browser, if I click the button, the context menu appears.
Comment 1 Halla Rempt 2014-12-22 10:08:45 UTC
Hi Patrick,

Could you also check with one of the current beta builds from http://files.kde.org/krita/windows/ ? You can probably just download the zipfile, drag to your desktop and execute krita.exe from the bin folder.
Comment 2 Patrick 2015-01-03 04:07:50 UTC
Created attachment 90200 [details]
attachment-13727-0.html

Hello,

I downloaded the beta and I still have the same behavior. It works when I
right click with my mouse, not with the button of the pen. I know the
button is well bound because I can right click anywhere outside Krita and I
can see the context menu.

Patrick

On Mon, Dec 22, 2014 at 2:08 AM, Boudewijn Rempt <boud@valdyas.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=342105
>
> Boudewijn Rempt <boud@valdyas.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |boud@valdyas.org
>
> --- Comment #1 from Boudewijn Rempt <boud@valdyas.org> ---
> Hi Patrick,
>
> Could you also check with one of the current beta builds from
> http://files.kde.org/krita/windows/ ? You can probably just download the
> zipfile, drag to your desktop and execute krita.exe from the bin folder.
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 3 Dmitry Kazakov 2015-01-04 06:52:17 UTC
Hi, Patrick!

Could you please generate a tablet events log for me?

I need you to follow this guide:
https://answers.launchpad.net/krita-ru/+faq/2494

You should use the latest Beta, and on step 5) please do the following:

5.1) Do a single short stroke with main tip of you stylus
5.2) Then Press the assigned button a couple of times while the stylus being in the proximity of the tablet
5.3) Then Press the assigned button, hold it and do a stroke with the tip of your stylus.

Then attach the output of resulting log to this bugreport. That will help me to find out what is happening there :)
Comment 4 Patrick 2015-01-04 22:15:29 UTC
Created attachment 90224 [details]
PATRICK-I7-WIN8.LOG

Here is the file.

I did a stroke with the stylus. Pressed 5 times with the button on the
stylus (that should do the context menu), then 4 times, then 3 times, then
2 times, then 1 time (with a pause of about 2 seconds between each tries).
Then, I did a final stroke and saved the file.

Patrick

On Sat, Jan 3, 2015 at 10:52 PM, Dmitry Kazakov <dimula73@gmail.com> wrote:

> https://bugs.kde.org/show_bug.cgi?id=342105
>
> Dmitry Kazakov <dimula73@gmail.com> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |dimula73@gmail.com
>
> --- Comment #3 from Dmitry Kazakov <dimula73@gmail.com> ---
> Hi, Patrick!
>
> Could you please generate a tablet events log for me?
>
> I need you to follow this guide:
> https://answers.launchpad.net/krita-ru/+faq/2494
>
> You should use the latest Beta, and on step 5) please do the following:
>
> 5.1) Do a single short stroke with main tip of you stylus
> 5.2) Then Press the assigned button a couple of times while the stylus
> being in
> the proximity of the tablet
> 5.3) Then Press the assigned button, hold it and do a stroke with the tip
> of
> your stylus.
>
> Then attach the output of resulting log to this bugreport. That will help
> me to
> find out what is happening there :)
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 5 Dmitry Kazakov 2015-01-09 16:22:59 UTC
Hi, Patrick!

It looks like we don't recognize the button mapping for some reason. I added more debug output to Krita now, could you install a new version and do one more test with generating the log?

[0] - http://files.kde.org/krita/windows/krita_x64_2.8.90.3.msi

I need a log for the following tests:

1) Simple stroke with the tip of the stylus
2) Just press the mapped "right button" without touching the tablet surface
3) Press "right button", touch the surface, move, untouch, release "right button"

Then attach the log to this bug and I hope I'll see what is happening there :)
Comment 6 Patrick 2015-01-09 16:24:30 UTC
Created attachment 90302 [details]
attachment-15011-0.html

Sure! I will do it when I come back from home :)

Thank you for your very good support.

On Fri, Jan 9, 2015 at 8:22 AM, Dmitry Kazakov <dimula73@gmail.com> wrote:

> https://bugs.kde.org/show_bug.cgi?id=342105
>
> --- Comment #5 from Dmitry Kazakov <dimula73@gmail.com> ---
> Hi, Patrick!
>
> It looks like we don't recognize the button mapping for some reason. I
> added
> more debug output to Krita now, could you install a new version and do one
> more
> test with generating the log?
>
> [0] - http://files.kde.org/krita/windows/krita_x64_2.8.90.3.msi
>
> I need a log for the following tests:
>
> 1) Simple stroke with the tip of the stylus
> 2) Just press the mapped "right button" without touching the tablet surface
> 3) Press "right button", touch the surface, move, untouch, release "right
> button"
>
> Then attach the log to this bug and I hope I'll see what is happening
> there :)
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 7 Patrick 2015-01-10 02:42:31 UTC
Created attachment 90319 [details]
MouseLeftClickAndRightClick.LOG

Hello,

I did 2 tests so you have 2 logs file. One is with the pen like you told me
to do. The second one is with my real mouse where I can see the context
menu. However, the context menu does not have all brushes like the previous
version, just color... but anyways, let's focus on the pen button first :)

Good luck,
Patrick Desjardins

On Fri, Jan 9, 2015 at 8:24 AM, Patrick Desjardins <mrdesjardins@gmail.com>
wrote:

> Sure! I will do it when I come back from home :)
>
> Thank you for your very good support.
>
> On Fri, Jan 9, 2015 at 8:22 AM, Dmitry Kazakov <dimula73@gmail.com> wrote:
>
>> https://bugs.kde.org/show_bug.cgi?id=342105
>>
>> --- Comment #5 from Dmitry Kazakov <dimula73@gmail.com> ---
>> Hi, Patrick!
>>
>> It looks like we don't recognize the button mapping for some reason. I
>> added
>> more debug output to Krita now, could you install a new version and do
>> one more
>> test with generating the log?
>>
>> [0] - http://files.kde.org/krita/windows/krita_x64_2.8.90.3.msi
>>
>> I need a log for the following tests:
>>
>> 1) Simple stroke with the tip of the stylus
>> 2) Just press the mapped "right button" without touching the tablet
>> surface
>> 3) Press "right button", touch the surface, move, untouch, release "right
>> button"
>>
>> Then attach the log to this bug and I hope I'll see what is happening
>> there :)
>>
>> --
>> You are receiving this mail because:
>> You reported the bug.
>>
>
>
Comment 8 Patrick 2015-01-10 02:42:33 UTC
Created attachment 90320 [details]
Stroke_RightClick_RightClickMove.LOG
Comment 9 Dmitry Kazakov 2015-01-10 07:51:10 UTC
Hi, Patrick!

Do I understand it right that what you did was:

1) Did a usual stroke with the tip of the pen
2) Then Pressed and Released the button without touching the tablet surface
3) Pressed the button
4) Touched the surface without releasing the button
5) Untouchced the surface without releasing the button
6) Touched the surface again
7) Released the button
8) Untouched the surface

Is it correct?

I just want to connect the events in the log with real activities of the tablet...
Comment 10 Patrick 2015-01-10 17:06:25 UTC
Created attachment 90325 [details]
attachment-28035-0.html

I did what you told me in the first email. Hum your last email has more
steps... Maybe I should retry
On Jan 9, 2015 11:51 PM, "Dmitry Kazakov" <dimula73@gmail.com> wrote:

> https://bugs.kde.org/show_bug.cgi?id=342105
>
> --- Comment #9 from Dmitry Kazakov <dimula73@gmail.com> ---
> Hi, Patrick!
>
> Do I understand it right that what you did was:
>
> 1) Did a usual stroke with the tip of the pen
> 2) Then Pressed and Released the button without touching the tablet surface
> 3) Pressed the button
> 4) Touched the surface without releasing the button
> 5) Untouchced the surface without releasing the button
> 6) Touched the surface again
> 7) Released the button
> 8) Untouched the surface
>
> Is it correct?
>
> I just want to connect the events in the log with real activities of the
> tablet...
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 11 Halla Rempt 2015-01-26 11:12:53 UTC
*** Bug 339491 has been marked as a duplicate of this bug. ***
Comment 12 mafediz 2015-01-26 14:53:04 UTC
I found this as a duplicate and want to add my log (followed the 7 steps) dmitry asked:

1) line stroke on cavas
2) press and release button 1, press and release  button 2  (settings b1= middle mouse, b2 = right mouse)
3) press button 1
4) touched surface , without releasing button 1
5) untouch surface, without releasing button 1
6) touch surface
7) release button 1
8)untouch surface.

system and drivers:
windows 8.1 x64, huion h610 pro.
huion drivers : TabletDriver20150120_8Expresskey_16Softkey
krita version:  krita_x64_2.8.91.0 (2.9 beta 2)
Comment 13 mafediz 2015-01-26 14:58:36 UTC
Created attachment 90669 [details]
log file of huion h610 pro press and release buttons
Comment 14 Marcus Kjeldsen 2015-03-31 11:20:41 UTC
Seeing same issue on the Surface Pro 3 win8.1 running Krita v2.9.1 (git 60518b7 and git 69f7d63). Right click (and erase) with the pen doesn't work :)
Comment 15 Halla Rempt 2015-04-24 08:45:09 UTC
Hi Marcus,

That's actually a different issue because the surface uses an ntrig and has yet another way of passing button clicks. I've checked with my h610 today and I'll confirm the bug. I need to find time to fix it now :-(
Comment 16 J. Smith 2015-05-05 07:10:50 UTC
For what it's worth this also occurs with the Huion H420.
Comment 17 ryukoreiakuma 2015-09-03 20:06:16 UTC
I've found an workaround that seems semi successful. I'm using the non pro version of the h610.

1) go to your tablet settings and remap you preferred right click key to an unused keyboard key. (i used numpad/ but that could be a shortcut somewhere)

2) go into krita under settings, click configure krita.

3) Go to canvas Input settings and click Show Popup Palette

4) Click Add shortcut and select Key Combination.

5) double click the blank space under input beside Key Combination and press your give your previously chosen key.

Now you should be able to bring the palette up as usual witht he stylus. I'm still having issues with the pan mode as the closest i got to was setting *middle click on the stylus to space. but it's awkward as holding middle click AND dragging the stylus while pressed is strange for me. but it does work.

as a side note, i tried auto hotkey and couldnt get it to work, altho somehow i messed up krita where it didnt recognize the stylus, and after closed and opened i had lost pen pressure but gained the right and middle click support as usual. The only thing i can think of (as a non programmer) is that for some reason krita stopped viewing the tablet as a table and thought it was a mouse instead. but i feel like that should mean it's possible somewhere for it to work.

OS: Windows 10 x64
Krita: Krita x64 verson 2.9.7 (git c89ac6a)
Tablet: Huion H610
Comment 18 Jeremy Holman 2015-10-20 09:06:08 UTC
I am having the same problem.

Windows 7 x64
Krita 2.9.7 (git 6577da7)
Huion H610Pro

The pen buttons seem to work in almost all ways, but they don't work for generating mouse-clicks when the cursor is on the canvas.

 * The stylus buttons work for generating mouse-clicks in other applications (tested: windows desktop, firefox).
 * My mouse's right-click and middle-click work as expected in Krita.
 * My stylus buttons, if bound as right-click, when hovering over non-canvas parts of the Krita UI, do the same thing as mouse-right-click does in those locations (e.g. over the File menu, e.g. on the Layers docker)
 * the previous comment's suggested workaround works for me, just as (s)he described
 
Let me know if another log file would help.
Comment 19 Thiébaut 2016-01-05 16:20:36 UTC
I can also confirm the bug using:
Win 10 x64
Krita 2.9.10 x64
Huion 1060 Pro+
Comment 20 Thiébaut 2016-01-18 22:17:35 UTC
Good news :)
This bug is solved in Krita 3.0 pre-alpha (git be28b1b)
Comment 21 Thiébaut 2016-03-16 21:55:20 UTC
Bad news :(
This bug is back in 3.0 alpha 3 (git de0d43d)
Comment 22 Thiébaut 2016-03-16 22:03:32 UTC
This seems to be somehow correlated to bug 359197 that appeared in alpha 2 and was solved in alpha 3.

I'll try to provide logs in the next days.
Comment 23 Thiébaut 2016-03-17 21:30:54 UTC
Created attachment 97950 [details]
Thiébaut's logs

Here is my log, after removing all the move events.
Comment 24 downshift7 2016-04-09 10:26:49 UTC
I'm having the same issue and was able to workaround by setting up a new Key Combination for Show Popup Palette and setting the Huion pen tablet settings up so that button 2 points to the same key combo (used ctrl+alt+0 since i don't use it for anything else)

This is working flawlessly and instantly now - possible Krita is expecting the mouse click only from the attached mouse / any reason it would restrict the response because it's technically not a mouse? I'm wondering if, since Windows sets the tablet up as a pen device (not purely as a HID) this could be a factor (I'm on Windows 10 FYI)

Hope this helps someone as this was the only thing stopping me from using Krita 100%!
Comment 25 Halla Rempt 2016-04-11 06:49:28 UTC
The problem is in the huion drivers. To quote from a mail we sent to the Huion people"

"The biggest problem we have with Huion tablets at the moment is that it doesn't implement
CSR_SYSBTNMAP (part of WTInfo function) [0]. That is really a problem. This function of Wintab is
supposed to tell the application how the user configured the stylus buttons, which one is "right
button", which one is "middle button". Huion driver has this configuration in the driver, but it
doesn't expose this info in the Wintab interface. It uses button mapping only for the synthesized
mouse events, but not in the Wintab packets. "
Comment 26 BenLaps 2016-04-12 17:03:32 UTC
Hello,

Same problem with me, right click does not work, no matter which button it is assigned.

Windows 10 Pro, Huion H610 Pro Driver 12.2.14, Krita_x64_2.99.89.0

Thank you
Comment 27 Max 2016-04-19 15:20:53 UTC
Hi, 
i solve that issue with my Huion H58L, 
it's a bit tricky but worth it
so follow this steps:
1. download AutoHotkey  utility from autohotkey.com (remap key utility for windows)
2. install to your PC
3. open  AutoHotkey .ahk which is in the Documents dir by default.
4. at the end of the file in the new line paste this: Shift & NumpadMult::send,{Rbutton}
*tip: you can replace shift and numpadMult to any keys that wont conflict to krita shortcut 
5. open huion tablet driver configuration (in the tray), 
click to configure Right click  button (which is right click by default) to a shortcut key
then set that shortcut to Numpad* and  Shift (or keys your choosen).
6. reload autohotkey script, by right click at the tray icon and click reload script.
7. .. now you can use right click button on your stylus!
Comment 28 Max 2016-04-19 16:05:21 UTC
Update to my post,
sorry guys but previous trick didn't actually working 
for thoose who still got not working Right click:
remap with AutoHotKey any non conflict key on keyboard to right click - i.e. NumpadMult::Rbutton
or, in case if you have tablet with keybuttons:
 set any keybutton on your graphic tablet to NumpadMult (any key you prefer)
Comment 29 Halla Rempt 2016-05-24 13:15:56 UTC
*** Bug 338352 has been marked as a duplicate of this bug. ***
Comment 30 Halla Rempt 2016-05-24 13:16:26 UTC
*** Bug 360560 has been marked as a duplicate of this bug. ***
Comment 31 Halla Rempt 2016-05-24 13:17:25 UTC
*** Bug 360409 has been marked as a duplicate of this bug. ***
Comment 32 Rastaban26 2016-06-11 04:44:50 UTC
I'm also experiencing this problem with the release version of Krita 3.0. 
Using Huion 610.

Also middle mouse button (used from the stylus) is not working.

Proposed workarounds are working fine for me.
Comment 33 wolthera 2016-06-13 07:17:33 UTC
*** Bug 364256 has been marked as a duplicate of this bug. ***
Comment 34 mcoudert 2016-07-06 20:40:22 UTC
If it can help, i've the same problem here. I'm on Windows 10 using HUION gt-220 screen tablet. 
i've noticed that : 
- the right click with the pen work in the dockers (layer, color...)
- if i do a right click in a dockers the corresponding menu appears, if just after that i do a right click with the stylus, on the canvas, it works and the palette popup appears but only the first time. After, it don't work anymore. But if i go over a docker again and right click to open the menu and then go on the canvas, it work the first time.... and so

hope you understand the explanation and sorry for my bad english.
Comment 35 mcoudert 2016-07-06 20:45:27 UTC
(In reply to mcoudert from comment #34)
> If it can help, i've the same problem here. I'm on Windows 10 using HUION
> gt-220 screen tablet. 
> i've noticed that : 
> - the right click with the pen work in the dockers (layer, color...)
> - if i do a right click in a dockers the corresponding menu appears, if just
> after that i do a right click with the stylus, on the canvas, it works and
> the palette popup appears but only the first time. After, it don't work
> anymore. But if i go over a docker again and right click to open the menu
> and then go on the canvas, it work the first time.... and so
> 
> hope you understand the explanation and sorry for my bad english.

I'm on krita 3.0 (64bits)
Comment 36 Trent 2016-07-11 21:07:37 UTC
I have the same issue with Krita where neither of the pen buttons work using my Huion H610 Pro. I problem exists in both the Krita Beta (krita-3.0-Beta-master-25ecbaf-x64) and the official Krita 3.0 release. However in the  Krita pre-alpha build (krita3-prealpha-b4bac8d) the buttons are working normally allowing me to Pan the canvas and use the popup pallet. I have not dove into this in depth yet to figure out why they work in the pre alpha, but not the beta or final release. I will update if I can figure it out.
Comment 37 Halla Rempt 2016-08-12 11:11:12 UTC
*** Bug 366474 has been marked as a duplicate of this bug. ***
Comment 38 Halla Rempt 2016-08-24 07:50:14 UTC
The problem is simply that the Huion Wintab driver does not give us the right information. They haven't implemented that part of the specification, so we cannot get the information that the stylus made a right-click in the canvas, where we listen to tablet events. Dmitry was talking the other day about a possible hack around the broken drivers, but that would cost us performance, and we'd have to make it generic and do the hack for all tablet brands, so we've simply not come to a decision whether to take that approach.
Comment 39 Joseph Richards 2016-08-24 07:57:38 UTC
Created attachment 100739 [details]
attachment-30623-0.html

So I should consider getting a Wacom or more official graphic tablet? from palepawn1@yahoo.com 

    On Wednesday, August 24, 2016 3:50 AM, Boudewijn Rempt via KDE Bugzilla <bugzilla_noreply@kde.org> wrote:
 

 https://bugs.kde.org/show_bug.cgi?id=342105

--- Comment #38 from Boudewijn Rempt <boud@valdyas.org> ---
The problem is simply that the Huion Wintab driver does not give us the right
information. They haven't implemented that part of the specification, so we
cannot get the information that the stylus made a right-click in the canvas,
where we listen to tablet events. Dmitry was talking the other day about a
possible hack around the broken drivers, but that would cost us performance,
and we'd have to make it generic and do the hack for all tablet brands, so
we've simply not come to a decision whether to take that approach.
Comment 40 BenLaps 2016-08-24 11:41:21 UTC
(In reply to mcoudert from comment #35)
> > i've noticed that : 
> > - the right click with the pen work in the dockers (layer, color...)
> > - if i do a right click in a dockers the corresponding menu appears, if just
> > after that i do a right click with the stylus, on the canvas, it works and
> > the palette popup appears but only the first time. 
> > 
I tried this and indeed, after a right click on a menu, the next Right clicking in the drawing area, the "popup Palette" appears once.

And there I see that it will probably be a problem that will not be solved unless the programmers at Huion correct the bug. I got used to draw without this function, then it no longer bothers me now that it does not work.

Thank you

Win 10, Krita 3.0 and 3.1 beta.
Comment 41 Venola Brooks 2016-08-26 15:54:30 UTC
Hello my name is Venola, when I use Krita it is slow and I am using a dell desktop computer tat is made 2016. How can I get it to work better?
Comment 42 Halla Rempt 2016-08-26 16:13:38 UTC
Dear Venola,

This is a bug tracker, and this bug is about using Krita with Huion tablets. It's not a general user support forum. Have you checked the FAQ: https://docs.krita.org/KritaFAQ#Krita_is_slow ?
Comment 43 Chris 2016-09-19 22:17:34 UTC
I have also experienced this problem with the new Huion 1060 plus with the 12.2.16 drivers.

All mouse buttons work outside of Krita, but not inside. However if I were to use the pen outside of Krita and then "click" back into Krita, Krita seems to detect the mouse press for the first input only.
Comment 44 Phoenix Enero 2016-09-22 10:47:50 UTC
Disclaimer: I have no idea about the technical side of this program.

Could the hack be turned on with a setting (i.e. "Workaround tablets not supporting specification WTxxx" or whatever) so users without the problem can use the program normally without performance decrease? Or is the abstraction so deep that something like that would only _increase_ the performance drop?

And is the performance drop really that high? If it's just one layer of abstraction can the performance drop be accepted by non-Wacom users? Having software that works is slightly more important that having software run fast. I'll also note that Photoshop and Manga Studio EX 5.0 seem to have no problems with stylus buttons.

Tablet used: HUION H610 Pro.
Comment 45 Phoenix Enero 2016-09-22 10:51:19 UTC
I'm sorry, non-HUION users not non-Wacom users.
Comment 46 paul.yeomans 2016-09-25 20:22:40 UTC
Sorry to add just a 'ME2' comment (Win 10, Krita 3.0.1, Huion H610 with 12.2.16.160527 Driver), Also to say that Downshift7's tip above to map the key combination and set the stylus button to the same shortcut works for me.

If it helps, track down the setting in Krita via:
Settings > Configure Krita > Canvas Input Settings > Show Popup Palette

NOT the 'Keyboard Shortcuts' panel of the config dialog!
Comment 47 Phoenix Enero 2016-10-05 07:07:47 UTC
I just noticed something: Stylus buttons work perfectly okay inside the Brushes panel test canvas (the panel where you create/modify brushes.) Right-click selects a color, middle-click drags the test canvas.
Comment 48 Halla Rempt 2016-10-07 09:50:21 UTC
That's because those react to the synthesized mouse events.
Comment 49 Geoffrey Mégardon 2016-10-16 15:41:36 UTC
I would like to add that I also get this issue with a Surface Pro 4.
Right-click (button pen 2 + tip press) does not show the pop-up radial menu.
Comment 50 Geoffrey Mégardon 2016-10-16 15:42:02 UTC
I would like to add that I also get this issue with a Surface Pro 4.
Right-click (button pen 2 + tip press) does not show the pop-up radial menu.
Comment 51 Halla Rempt 2016-10-16 16:05:58 UTC
That's a different bug: https://bugs.kde.org/show_bug.cgi?id=361706 -- also caused by hardware manufacturers and driver developers being morons who don't implement the standard, but different hardware and different driver, and so it would need a different workaround, if a workaround is possible.
Comment 52 Halla Rempt 2016-11-28 13:36:46 UTC
*** Bug 372790 has been marked as a duplicate of this bug. ***
Comment 53 bretema3d 2016-12-13 23:48:09 UTC
Hello I have a HUION GT-220 v2 with drivers 12.2.16.160527
Krita 3.0.1.1
Windows 10 64 bits [Versión 10.0.14393]

Mi right click button behaves as mcoudert has said and also the middle button does not work at all.

I also use Blender for sculpting and all the buttons of the pen works without problems. I do not know if the developers have made some hack in order that the Huion tablets work, but maybe you can ask some of them how they have solved the problem or if they know a workaround that do not reduce performance.


(In reply to mcoudert from comment #35)
> (In reply to mcoudert from comment #34)
> > If it can help, i've the same problem here. I'm on Windows 10 using HUION
> > gt-220 screen tablet. 
> > i've noticed that : 
> > - the right click with the pen work in the dockers (layer, color...)
> > - if i do a right click in a dockers the corresponding menu appears, if just
> > after that i do a right click with the stylus, on the canvas, it works and
> > the palette popup appears but only the first time. After, it don't work
> > anymore. But if i go over a docker again and right click to open the menu
> > and then go on the canvas, it work the first time.... and so
> > 
> > hope you understand the explanation and sorry for my bad english.
> 
> I'm on krita 3.0 (64bits)
Comment 54 bretema3d 2016-12-16 17:27:55 UTC
Created attachment 102820 [details]
Debug log only using right and middle button

This is a log from the DebugView application. The right and middle button works but you have to follow the next steps:
1 - Move outside the tablet the pen
2 - Press and hold some button of the pen
3 - With the button pressed, touch the screen.
4 - Now the action attached to this button works
Comment 55 bretema3d 2016-12-16 18:16:09 UTC
If you check the log. Until line 71 you can find events related with the right pen button. After that line, the events are from the middle button.

With right button pressed, before touching the tablet with the pen, the palette popup without problems. Also if I use the middle button, I can pan the canvas without problems.

Althouh it works, makes the workflow a bit cumbersome because you must move the pen far from the screen (between 2-3 cm) in order that the pressed keys works. I hope that this information can be useful to the developers.


(In reply to bretema3d from comment #54)
> Created attachment 102820 [details]
> Debug log only using right and middle button
> 
> This is a log from the DebugView application. The right and middle button
> works but you have to follow the next steps:
> 1 - Move outside the tablet the pen
> 2 - Press and hold some button of the pen
> 3 - With the button pressed, touch the screen.
> 4 - Now the action attached to this button works
Comment 56 Halla Rempt 2017-04-06 09:29:09 UTC
*** Bug 378274 has been marked as a duplicate of this bug. ***
Comment 57 ryukoreiakuma 2017-07-15 04:17:53 UTC
I've finally managed to get it working by using some files from UC Logics drivers,(what the Huion tablets are based off of). The right click and middle click seem to work without issue. Here are the steps to get it working.

1. You need the driver for you tablet from Huion. The one i used as of writing this is 12.3.7. link:https://www.huiontablet.com/support/

2. next you need to download the UC Logic driver. link:https://www.uc-logic.com/downloads/ 

3. Install the Huion driver, making sure to remember it's location.

4. extract the UC Logic driver and navigate to the common directory.

5. copy everything inside except the x32 and x64 folders to your Huion install location. 

and that's it. you may need to restart or re-plug your tablet for it to take effect, but it should be working as expected now. 


OS: Windows 10 x64 - version  1607(build 14393.1480)
Krita: 3.1.4 x64
Tablet: Huion H610
Comment 58 Thiébaut 2017-07-17 20:17:46 UTC
Upgrading the Huion driver to 12.3.7 was enough to solve the problem for me in Krita 3.1.4, no need to install the UC Logic drivers.
Comment 59 Halla Rempt 2017-07-18 08:41:23 UTC
Closing the bug since upstream -- Huion -- has fixed their drivers.