@keszegh updated to 1.85, but I dont understand what should I fix about "pressure sensitivity"? ImGui do not have mouse/touch/pen pressure support. It only have a property called "PenPressure", but its never used.
more precisely, what in latest gideros (unreleased) i get is when wacom is in 'using windows ink mode': Event.TOUCHES_BEGIN event is:
WHEN MOUSE RIGHT-CLICKED: {__target = {__events = {}, __userdata = "userdata: 034BAB7C"}, __uniqueid = 305, __userdata = "userdata: 034B84B0", allTouches = {{id = 1, modifiers = 0, mouseButton = 2, pressure = 0, rx = 566, ry = 178, type = "mouse", x = 566, y = 178}}, touch = nil, touches = {nil}, type = "touchesBegin"}
WHEN WACOM PEN BUTTON PRESSED: {__target = {__events = {}, __userdata = "userdata: 034BAB7C"}, __uniqueid = 570, __userdata = "userdata: 034B84B0", allTouches = {{id = 1, modifiers = 0, mouseButton = 2, pressure = 0, rx = 451, ry = 132, type = "penTablet", x = 451, y = 132}}, touch = nil, touches = {nil}, type = "touchesBegin"}
all fine. but imgui in this mode does not register pen button as right click, checking now it is even more bogus, main menu does not open on pen tip press (which should be equivalent to mouse left-click)
when in wacom settings 'using windows ink' is turned OFF then imgui works fine, pen tip press behaves as mouse left-click and pen button as mouse right-click. the issue with this mode is that in this mode gideros does not register the pen pressure which i need for other reasons (not in imgui).
so in short you don't need to fix anything about pressure sensitivity, but rather about pen emulating left/right-click not only in gideros but also in imgui when 'windows ink' is enabled.
debugView does not seem to give me any such info (i'm running and testing my app in gideros player). actually it does not give any debug info when gideros player is running, only when i exit it it gives a few lines about AudioDeviceSession states and ProcessWatherService quit.
the pen events seem to pass through imgui completely, they do not even set IO:wantCaptureMouse() to true. (i need to check my app for eventpropagation related things as this does not happen in my smaller demo, but there also is some issue whether pen button is registered, sometimes it does so but not always)
in don't completely understand what happens but what is sure is that in my app: windows ink off: mouse and pen both work as expected (left,right clicks too) windows ink on: mouse works as expected but pen does not do anything on imgui menu elements at all
ok, so in my 'simple demo' what i realized is that: -pen tip as left-click works -pen button as right-click does not work, but actually doubly-clicking with the button behaves as a right-click! -hovering with pen does not work
(i/we have yet to find the difference between my main app and this smaller demo, but first probably it would be a great progress if the simple demo would work well)
i don't see under the hood but i guess if imgui would directly use the gideros events it receives 'as a sprite' (is it inheriting sprite?), then it would automatically work as expected.
ot alternately check @hgy29 's fix for gideros he did recently and copy his method for how imgui does it.
i don't see under the hood but i guess if imgui would directly use the gideros events it receives 'as a sprite' (is it inheriting sprite?), then it would automatically work as expected.
ot alternately check @hgy29 's fix for gideros he did recently and copy his method for how imgui does it.
ImGui recieves following codes from gideros: 0, 1, 2, 4, 8, 16 etc, but in ImGui I have array with 5 elements (for 5 buttons, where 0 - LMB, 1 - RMB, 2 - MMB, 3 - unused, 4 - unused), so to map gideros button to ImGui im using swith. But I have no idea how to map NO_BUTTON code (which is 0 in gideros) to ImGui, because in TOUCHES_MOVE event pen button = 0
i don't see under the hood but i guess if imgui would directly use the gideros events it receives 'as a sprite' (is it inheriting sprite?), then it would automatically work as expected.
ot alternately check @hgy29 's fix for gideros he did recently and copy his method for how imgui does it.
ImGui recieves following codes from gideros: 0, 1, 2, 4, 8, 16 etc, but in ImGui I have array with 5 elements (for 5 buttons, where 0 - LMB, 1 - RMB, 2 - MMB, 3 - unused, 4 - unused), so to map gideros button to ImGui im using swith. But I have no idea how to map NO_BUTTON code (which is 0 in gideros) to ImGui, because in TOUCHES_MOVE event pen button = 0
@rrraptor, now i realized that in my smaller demo i allowed touch events to generate mouse events. it seems for imgui this was needed. allowing this in my main app too, now pen tip as left-click works completely. with pen button as right-click it sometimes works and sometimes does not for some reason, it seems that maybe what matters is if i move the pen while pressing the button (which is inevitable a bit as the pen is in the air) then it may not register as a right-click. i will experiment more with it sometime later when i get time.
btw hover with pen still does not work, which would be useful.
Comments
btw i don't yet see the gideros fix by @hgy29 in the github page.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: keszegh
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: keszegh
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Event.TOUCHES_BEGIN event is:
WHEN MOUSE RIGHT-CLICKED:
{__target = {__events = {}, __userdata = "userdata: 034BAB7C"}, __uniqueid = 305, __userdata = "userdata: 034B84B0", allTouches = {{id = 1, modifiers = 0, mouseButton = 2, pressure = 0, rx = 566, ry = 178, type = "mouse", x = 566, y = 178}}, touch = nil, touches = {nil}, type = "touchesBegin"}
WHEN WACOM PEN BUTTON PRESSED:
{__target = {__events = {}, __userdata = "userdata: 034BAB7C"}, __uniqueid = 570, __userdata = "userdata: 034B84B0", allTouches = {{id = 1, modifiers = 0, mouseButton = 2, pressure = 0, rx = 451, ry = 132, type = "penTablet", x = 451, y = 132}}, touch = nil, touches = {nil}, type = "touchesBegin"}
all fine. but imgui in this mode does not register pen button as right click, checking now it is even more bogus, main menu does not open on pen tip press (which should be equivalent to mouse left-click)
when in wacom settings 'using windows ink' is turned OFF then imgui works fine, pen tip press behaves as mouse left-click and pen button as mouse right-click. the issue with this mode is that in this mode gideros does not register the pen pressure which i need for other reasons (not in imgui).
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Also added "IO:getPenPressure()" just for good measure
Btw, Im not handling multitouch in ImGui code...
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Uploaded new DLL, pls run DebugView and send me following text:
Gideros codes are:
0 - no button
1 - LMB
2 - RMB
4 - MMB
ImGui's:
0 - LMB
1 - RMB
2 - MMB
3 - Unused
4 - Unused
P.S. It's strange why the "touchesMove" event doesn't have a button... @hgy29 any ideas?)
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
(i need to check my app for eventpropagation related things as this does not happen in my smaller demo, but there also is some issue whether pen button is registered, sometimes it does so but not always)
Fragmenter - animated loop machine and IKONOMIKON - the memory game
windows ink off: mouse and pen both work as expected (left,right clicks too)
windows ink on: mouse works as expected but pen does not do anything on imgui menu elements at all
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
-pen tip as left-click works
-pen button as right-click does not work, but actually doubly-clicking with the button behaves as a right-click!
-hovering with pen does not work
(i/we have yet to find the difference between my main app and this smaller demo, but first probably it would be a great progress if the simple demo would work well)
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
ot alternately check @hgy29 's fix for gideros he did recently and copy his method for how imgui does it.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
I have very old tablet, this is how it works:
P.S. windows is not moving by pen inputs due to "io.ConfigWindowsMoveFromTitleBarOnly" is set to true
Likes: MoKaLux
btw hover with pen still does not work, which would be useful.
EDIT: thanks for the help.
Fragmenter - animated loop machine and IKONOMIKON - the memory game