TNTU-121-SE-research / jpen

Java library for accessing pen/digitizer tablets and pointing devices
1 stars 0 forks source link

jpen lib with native libs #4

Open vitalyte opened 9 months ago

vitalyte commented 9 months ago

Обовязково дотримуватись підходів до організації роботи https://github.com/TNTU-121-SE-research/ANM_docs/issues/7!

vitalyte commented 8 months ago

JEP 313: Remove the Native-Header Generation Tool (javah)
There are no direct JDK dependences on the javah tool. Externally, there are some derivatives of javah, such as the Ant javah task, but just as users of the javah command are recommended to use javac -h, so too are users of these dependences are recommended to use instead the corresponding support provided for javac.

vitalyte commented 5 months ago

@IvanOsiichuk project Jpen is migrated to GitHub Update your records and links.

IvanOsiichuk commented 5 months ago

@IvanOsiichuk project Jpen is migrated to GitHub Update your records and links.

I updated it

vitalyte commented 5 months ago

It could be our case for data gaps like:

"Span"   "Time"     "X"        "Y"        "Pressure" 
0:0:14.384   0:0:14.384   0.000000   1.434000   0.0
0:0:14.388   0:0:14.400   NaN   NaN   NaN
0:0:14.392   0:0:14.400   NaN   NaN   NaN
0:0:14.396   0:0:14.400   NaN   NaN   NaN
0:0:14.400   0:0:14.400   0.000000   1.613250   0.0
0:0:14.404   0:0:14.415   NaN   NaN   NaN
0:0:14.408   0:0:14.415   NaN   NaN   NaN
0:0:14.412   0:0:14.415   NaN   NaN   NaN
0:0:14.416   0:0:14.415   -0.179250   1.792500   0.0
0:0:14.420   0:0:14.442   NaN   NaN   NaN
0:0:14.424   0:0:14.442   NaN   NaN   NaN
0:0:14.428   0:0:14.442   NaN   NaN   NaN
0:0:14.432   0:0:14.442   NaN   NaN   NaN
0:0:14.436   0:0:14.442   NaN   NaN   NaN
0:0:14.440   0:0:14.442   NaN   NaN   NaN
0:0:14.444   0:0:14.442   -0.358500   1.971750   0.0
0:0:14.448   0:0:14.449   -0.537750   1.971750   0.0
0:0:14.452   0:0:14.463   NaN   NaN   NaN
0:0:14.456   0:0:14.463   NaN   NaN   NaN
0:0:14.460   0:0:14.463   NaN   NaN   NaN
0:0:14.464   0:0:14.463   -0.717000   1.971750   0.0

Why do I suddenly stop receiving WT_PACKET messages from the tablet or seem to only get some of the tablet packets?

You are probably missing tablet packets because your context's packet queue is overflowing. Each Wintab context has a queue of tablet packets. Wintab only adds new packets to the queue and sends your application a WT_PACKET message if the queue is not full. If the queue is full, Wintab discards the packet and does not send your application a WT_PACKET message to tell you that your context received a tablet packet.

You can help prevent the queue from overflowing by always removing packets from the queue when you receive a WT_PACKET message and by flushing the queue when you receive WT_PROXIMITY messages.

You can flush the queue by calling:

WTPacketsGet(hWintabContext, VALUE_LARGER_THAN_YOUR_QUEUE_SIZE, NULL); or WTPacket(hWintabContext, wPacketSerialNumber, NULL);

Other option is Java side. It is for research.