How to get raw data from Galaxy S Pen Remote SDK?

Hi everyone,

I was wondering if S Pen Remote SDK allow developers to access raw data from the S pen, for example, is it possible to obtain pen pressure level or pen tilt data? The device is Galaxy Tab S6

Hello,
S Pen Remote SDK does not provide pen pressure level or pen tilt data.

Thanks,
Ummey

Hello everyone,

is it perhaps possible to access pen pressure data by other means ( different sdk, perhaps coding in c++ ) ? Looks like samsungs’ proprietary wite-on-pdf app uses that.

Regards
der

In Android, you can override the OnTouchEvent() (which will be called from the system as fast 60 calls/second in my case. A MotionEvent: (MotionEvent  |  Android Developers) is passed in with all the data you could ask for. ACTION_MOVE, ACTION_UP, PointerID, etc. I have seen among the documentation is a pressure value.

I wrote a simple app the does this. When ACTION_DOWN occurs, I clear draw buffers. ACTION_MOVE causes current coordinates to be added to a vector buffer. ACTION_UP ends the recording and draws the line on a new View.

1 Like