I own a Samsung Galaxy Tab S7+ and want to play with the S-Pen.
Unfortunately I struggle with the SDK access. I tried to start with Erels example, but dont know how to get the SpenUnitManager and set the listeners to BUTTON and AIR_MOTION.
Can someone help me with that?
I think the SpenUnitManager should be Args(0) of the Connection_Event parameters. You can put it in a JavaObject and play with it there. Unfortunately I'm rusty on the low level Java stuff so I won't try to guess how to add the events as I don't have an S-Pen enabled device but I'm sure it can be done.