Python Wacom Interface

前端 未结 2 1662
独厮守ぢ
独厮守ぢ 2021-01-15 14:12

I am trying to write a python script on Windows 7 to interact with my Wacom Bamboo Pen tablet. Wacom recommends using the WinTab API, and it works fine, but not for my appli

相关标签:
2条回答
  • 2021-01-15 14:32

    I think, in wintab you can get the raw coordinates. At least in Python wrapper for wintab you can access them:

    cgkit.wintab.Packet.x
    

    In absolute mode, contains the scaled cursor location along the x axis. In relative mode, contains the scaled change in cursor position.

    cgkit.wintab.Packet.y
    

    In absolute mode, contains the scaled cursor location along the y axis. In relative mode, contains the scaled change in cursor position.

    I'm investigating for myself if there is an cross-platform api for tablets, but if you need windows-only solution that should work.

    0 讨论(0)
  • 2021-01-15 14:54

    Although its not related to the question (other than Wacom) some readers might find this useful:

    https://boutiqueretouching.com/fix-wacom-lag/

    Advice: Attach your pen to your tablet with string (Or always store your wacom pen in its dock)... This stops your family mistaking it for a dried up felt tip, and throwing it in the bin. (Did this myself once when tidying up - agh!)

    0 讨论(0)
提交回复
热议问题