To be used as a mouse, the tablet must be switched from the default "Absolute" mode to the "Relative" mode, when the tablet mimics a mouse.
This can be done by a script automatically executed at power-on, which may also choose how the buttons should behave, if you do not like the defaults.
For instance, for my Wacom stylus I set the tip to be left click, the first button to be right click and the second button to be double left click. Actually doing double click with the stylus buttons is more inconvenient, so it is more comfortable to map the single click on some button as a double click.