Hi all,
I'm trying to adapt some open-source code to my needs, however the open source code which I am trying to use doesn't entirely work itself. The code can be downloaded from
The problem is that I do not understand how the dll is updating the data packets in pkData, and hence I cannot work out why dll only seems to update the pen pressure and not the coordinates of the pen.
pkData is defined as a user-defined type called Packet, which is designed to contain all the information about x,y,z,pressure and any buttons pressed. However I cannot find anywhere which specifically tells pkData to be populated with any information, yet it gets the pressure values correct although all other information stays static.
The only place where pkData is mentioned in the code is in modMessages.ReceivePacket, which is a sub which takes data out of pkData and places draws it onto the picture.
All help much appreciated!
I'm trying to adapt some open-source code to my needs, however the open source code which I am trying to use doesn't entirely work itself. The code can be downloaded from
The problem is that I do not understand how the dll is updating the data packets in pkData, and hence I cannot work out why dll only seems to update the pen pressure and not the coordinates of the pen.
pkData is defined as a user-defined type called Packet, which is designed to contain all the information about x,y,z,pressure and any buttons pressed. However I cannot find anywhere which specifically tells pkData to be populated with any information, yet it gets the pressure values correct although all other information stays static.
The only place where pkData is mentioned in the code is in modMessages.ReceivePacket, which is a sub which takes data out of pkData and places draws it onto the picture.
All help much appreciated!