I have recently updated JUCE to the latest GIT (i have stayed with the same version for more than a year before that) --> I’ve lost all mouseDown, MouseDrags, etc on Windows7 / Touchscreen.
I have also compiled JuceDemo to check , and i have the same issue with the demo.
The problem might come from the MouseInputSources management… because everything works fine with the Finger and the Mouse… but the stylet can’t be seen.
i 've also checked with an old JuceDemo (more than 1 year old) and that one worked with the 3 kind of inputs (so this proves it’s not a limitation from my WINDOWS settings).
I don’t even know what a stylet is! (assuming it’s a type of pen for the touchscreen…?)
I’ve obviously not removed any code that was designed to handle any “stylet” events! So I guess that whatever is happening must be a result of the fact that the windows are now capable of handling touches… Perhaps when a window can receive touch events, Windows stops sending it any stylet events?
by stylet , i mean “pen for touchscreen” (i think it’s called this way - but i’m French so i’m not sure)
I agree with you regarding WIndows now handling touches… but this does not explain why the old JuceDemo responds better than the new one.
By the way, i did the big jump (From JUCE 1.51 to JUCE 2.0.12)
Is there a way to handle all possible “mouse” inputs the same (meaning mouse, finger and pen)
Yes, it does explain it. The old version didn’t accept touch events, and the new one does, so Windows is clearly behaving differently depending on whether a window accepts touches or not.
Since I’ve absolutely no idea what policy Windows is using, I really don’t know what I could do. If you want to try an experiment, have a search in juce_win32_Windowing.cpp for the registerTouchWindow() call - by commenting that out, you’ll stop the windows accepting touch events, and I assume that’ll make your stylus thing work again.
[quote] If you want to try an experiment, have a search in juce_win32_Windowing.cpp for the registerTouchWindow() call - by commenting that out, you’ll stop the windows accepting touch events, and I assume that’ll make your stylus thing work again.
[/quote]
Thanks for the info
if i comment this line in juce_win32_Windowing.cpp
…well no, if you comment that out, then it should behave exactly like the old version did. Like I said, try it and see what happens, to prove whether or not it really is the touch support that’s causing your problem.
sorry my english seems to be bad. 'only the mouse would work" meant "only the mouse worked"
in fact, i tried it and only the mouse worked, not the pen and not the finger anymore.
Well yeah, obviously I’ve seen the documentation, those are the functions I’ve used! They say nothing about a stylus, and I’m assuming a stylus would just be treated like either a touch or a mouse-click. I’m pretty sure there’s nothing special that an application is supposed to do to use a stylus, so I really don’t know what to suggest.
then i go back to the behaviour i wanted (meaning any input works)
it seems that the tablet pen would mean other signature mask, etc.
my application is mono touch , so i think this would be maybe interesting to have a global option in Juce to have all the mouse / finger / pen distinction available only when needed.
Thanks for the proposal, but sorry this fix does not work. I’ll test tomorrow what’s the problem… i’d need to take time to look at it (i need to focus on something else today)