{"action":"created","issue":{"url":"https://api.github.com/repos/mypaint/mypaint/issues/154","labels_url":"https://api.github.com/repos/mypaint/mypaint/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/mypaint/mypaint/issues/154/comments","events_url":"https://api.github.com/repos/mypaint/mypaint/issues/154/events","html_url":"https://github.com/mypaint/mypaint/issues/154","id":51930662,"number":154,"title":"Pressure sensitivity stopped worked with wizardpen driver","user":{"login":"loentar","id":4038431,"avatar_url":"https://avatars.githubusercontent.com/u/4038431?v=3","gravatar_id":"","url":"https://api.github.com/users/loentar","html_url":"https://github.com/loentar","followers_url":"https://api.github.com/users/loentar/followers","following_url":"https://api.github.com/users/loentar/following{/other_user}","gists_url":"https://api.github.com/users/loentar/gists{/gist_id}","starred_url":"https://api.github.com/users/loentar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loentar/subscriptions","organizations_url":"https://api.github.com/users/loentar/orgs","repos_url":"https://api.github.com/users/loentar/repos","events_url":"https://api.github.com/users/loentar/events{/privacy}","received_events_url":"https://api.github.com/users/loentar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mypaint/mypaint/labels/request-for-help","name":"request-for-help","color":"e6e6e6"},{"url":"https://api.github.com/repos/mypaint/mypaint/labels/works-for-me","name":"works-for-me","color":"fcfcfc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2014-12-14T20:31:41Z","updated_at":"2015-01-06T15:09:39Z","closed_at":"2015-01-05T13:51:43Z","body":"I have UGEE M708 tablet (Wizardpen driver, detected as UC-LOIC TABLET 1060) which works perfectly on MyPaint 1.1.0 installed from Ubuntu 14.04 repo.\r\n\r\nBut in current version of MyPaint (built from latest git sources) pressure sensitivity does not work and the tablet is detected as mouse.\r\n\r\nAlso it have one more strange bug: when I press any hardware button on the tablet, current version MyPaint show About screen. I don't have hotkey for that!\r\nIn case of MyPaint 1.1.0 hardware buttons works correctly: switches between brushes, etc.\r\n\r\nI suspect the problem may be when MyPaint picks for wrong device of three, but I cannot set other devices as \"ignored\" because mypaint will change the all three \"UC-LOIC TABLET 1060\" to ignored if I change any.\r\n\r\nI can provide any required information.\r\n\r\n```\r\n$ xinput list\r\n⎡ Virtual core pointer                    \tid=2\t[master pointer  (3)]\r\n⎜   ↳ Virtual core XTEST pointer              \tid=4\t[slave  pointer  (2)]\r\n⎜   ↳ Barcode Reader                          \tid=10\t[slave  pointer  (2)]\r\n⎜   ↳ UC-LOIC TABLET 1060                     \tid=12\t[slave  pointer  (2)]\r\n⎜   ↳ UC-LOIC TABLET 1060                     \tid=13\t[slave  pointer  (2)]\r\n⎜   ↳ UC-LOIC TABLET 1060                     \tid=14\t[slave  pointer  (2)]\r\n⎜   ↳ SynPS/2 Synaptics TouchPad              \tid=16\t[slave  pointer  (2)]\r\n⎣ Virtual core keyboard                   \tid=3\t[master keyboard (2)]\r\n    ↳ Virtual core XTEST keyboard             \tid=5\t[slave  keyboard (3)]\r\n    ↳ Power Button                            \tid=6\t[slave  keyboard (3)]\r\n    ↳ Video Bus                               \tid=7\t[slave  keyboard (3)]\r\n    ↳ Sleep Button                            \tid=8\t[slave  keyboard (3)]\r\n    ↳ Barcode Reader                          \tid=9\t[slave  keyboard (3)]\r\n    ↳ USB 2.0 Camera                          \tid=11\t[slave  keyboard (3)]\r\n    ↳ AT Translated Set 2 keyboard            \tid=15\t[slave  keyboard (3)]\r\n\r\n# pressure test\r\n$ xinput test 12\r\n.....\r\nmotion a[0]=1634 a[1]=1150 a[2]=0 \r\nmotion a[0]=1634 a[1]=1149 a[2]=0 \r\nmotion a[0]=1634 a[1]=1148 a[2]=0 \r\nmotion a[0]=1634 a[1]=1147 a[2]=0 \r\nmotion a[0]=1634 a[1]=1146 a[2]=0 \r\nbutton press   1 a[0]=1634 a[1]=1146 a[2]=0 \r\nmotion a[0]=1634 a[1]=1146 a[2]=107 \r\nmotion a[0]=1634 a[1]=1146 a[2]=138 \r\nmotion a[0]=1634 a[1]=1146 a[2]=174 \r\nmotion a[0]=1634 a[1]=1146 a[2]=213 \r\nmotion a[0]=1634 a[1]=1146 a[2]=264 \r\nmotion a[0]=1634 a[1]=1146 a[2]=320 \r\nmotion a[0]=1634 a[1]=1146 a[2]=380 \r\nmotion a[0]=1634 a[1]=1146 a[2]=433 \r\nmotion a[0]=1634 a[1]=1146 a[2]=482 \r\nmotion a[0]=1634 a[1]=1146 a[2]=531 \r\nmotion a[0]=1634 a[1]=1146 a[2]=586 \r\n.....\r\n```"},"comment":{"url":"https://api.github.com/repos/mypaint/mypaint/issues/comments/68876744","html_url":"https://github.com/mypaint/mypaint/issues/154#issuecomment-68876744","issue_url":"https://api.github.com/repos/mypaint/mypaint/issues/154","id":68876744,"user":{"login":"achadwick","id":61299,"avatar_url":"https://avatars.githubusercontent.com/u/61299?v=3","gravatar_id":"","url":"https://api.github.com/users/achadwick","html_url":"https://github.com/achadwick","followers_url":"https://api.github.com/users/achadwick/followers","following_url":"https://api.github.com/users/achadwick/following{/other_user}","gists_url":"https://api.github.com/users/achadwick/gists{/gist_id}","starred_url":"https://api.github.com/users/achadwick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achadwick/subscriptions","organizations_url":"https://api.github.com/users/achadwick/orgs","repos_url":"https://api.github.com/users/achadwick/repos","events_url":"https://api.github.com/users/achadwick/events{/privacy}","received_events_url":"https://api.github.com/users/achadwick/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T15:09:39Z","updated_at":"2015-01-06T15:09:39Z","body":"Ah, so newer GDK is actually seeing the axis's value! Just flagged as `GDK_AXIS_IGNORE`. That's interesting. Good lateral thinking and a cool workaround :+1:\r\n\r\nI'm in two minds about what we should do about this. Since the tablet in question and/or its lower-level input handling is fundamentally broken here I'm not going to chase it further. However I might very well accept a patch which allows users to remap axes by number, if it was complete with good UI and fitted into our [`gui.device.Monitor` framework](https://github.com/mypaint/mypaint/blob/599577b43e20a8f1a1c07113a20207af841062a4/gui/device.py#L70)."}}