Welcome to %s forums

BrainModular Users Forum

Login Register

SDK mouse multi callbacks

Tell us what you'd like Usine to do
Post Reply
sm_jamieson
Member
Posts: 559
Contact:

Unread post by sm_jamieson » 29 Nov 2017, 04:25

In the SDK multi callbacks are now working at last - excellent.
However I have noticed that when then touch screen is being used, the Mouse Move Multi callback is called continuously with the same x and y value when a finger is in one position on the screen. This can be filtered out by storing the previous value and only processing changed values.
But it is not very efficient as the SDK function is being called a huge number of times.
Maybe the touch point values reported by Windows to Usine are changing all the time at a very low level, but these should be filtered out by Usine.
This problem does not occur when with the X and Y module parameters - when the finger is still, the values to not change.
Please can we change the SDK mouse callbacks to only report changes in the value (down to some minimum resolution).

I will check for the non "Multi" callbacks tomorrow - I'm not sure if they behave the same way or not.

User avatar
senso
Site Admin
Posts: 4425
Location: France
Contact:

Unread post by senso » 30 Dec 2017, 11:31

not sure:
the callback is almost called directly by the Windows API. The continuous call can give interesting info like "fingers are still in touch" which can be very interesting. Internally, in Usine we use it a lot.
So I can't take such a decision and filter duplicated messages.

The best soluce is to filter messages in your user module?

sm_jamieson
Member
Posts: 559
Contact:

Unread post by sm_jamieson » 30 Dec 2017, 13:44

OK I understand. I already filter in my module.
Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 37 guests