• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
stylus eraser
#4
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
Reply


Messages In This Thread
stylus eraser - by Teun Kiewiet - 03-02-2024, 10:49 PM
RE: stylus eraser - by Zubersoft - 03-03-2024, 05:56 PM
RE: stylus eraser - by Teun Kiewiet - 03-08-2024, 02:40 AM
RE: stylus eraser - by Zubersoft - 03-08-2024, 07:47 AM
RE: stylus eraser - by Zubersoft - 03-08-2024, 07:49 AM



Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2024 MyBB Group.