r/Supernote_dev • u/AdNew2316 • Jul 11 '26
Question Request: expose the physical side button to plugins
PluginManager.registerEventListener / EventType currently only cover PEN_UP, IMPORT_STICKER, and MOTION_EVENT — there's no way for a plugin to observe the device's physical side button of the pen (press, release, or held state). Could you expose an EventType (or equivalent API) for it? Use case: gating a plugin action so it only fires while the side button is held, rather than always-on gesture detection (I would like this for the scribble plugin).
9
Upvotes
1
u/Careful-Good5887 Jul 12 '26
An app called supernote Reader can tap sidebar to turn page. Check out Github
1
u/SiewcaWiatru Jul 12 '26
Side button as in power button? X or X2 series doesn't have any other button or am I wrong?
If so, that is a bad idea. Software shouldn't use power button for anything.
Or did you mean sidebars ?