03-08-2024, 07:47 AM
To provide information on what I think is happening, when a touch event occurs (either through a finger, pen/stylus or mouse), a MotionEvent is generated in the Android framework. With this event, I can check what the tool type is. If the tool type is reported as an eraser (MotionEvent.TOOL_TYPE_ERASER), then I respond by switching to the eraser tool until I get an event that indicates that the touch was released. So your S-Pen is being reported as an eraser. I don't know how that's possible, but based on your description, that's the only thing that makes sense. Let me ask this - if you use the Samsung drawing app on the device, does it seem to correctly respond to the stylus? Or does it also act like it's an eraser?
Thanks,
Mike
Thanks,
Mike