For Mac OS version 10.14 and above , the system requires you to give the privacy accessibility to allow the tablet driver works on it.
To enable the privacy accessibility, follow the steps below:
1. Open the "System Preferences"
2. Click the "Security & Privacy"
3. Select the "Privacy"
4. Select the "Accessibility"
5. Unlock
6. Select "PenTabletService"