ZaneA / WacomWebPlugin

An implementation of the Wacom Tablet Plugin API for NPAPI capable browsers on Linux.
GNU General Public License v3.0
52 stars 4 forks source link

Return correct positions #9

Closed ZaneA closed 11 years ago

ZaneA commented 11 years ago

In the API there are three different positions to consider, these are:

Currently all three positions are set as the tablet coordinates. While this doesn't seem to break anything, I'm pretty certain that it's incorrect. However I'm not sure if pos/sys should be screen coordinates or browser coordinates (and the Wacom docs are a little ambiguous here), and there will be other factors to take into account for both (multiple-monitors, browser position/size).

ZaneA commented 11 years ago

As of 13a73660148a8f1636bf86a783faaca8159ec49c posXY and sysXY are being returned as screen pixel coordinates. Seems to be more correct, but none of the examples I can find actually make use of it. Closing for now, but will need enhancements in the future (multi-monitor etc).