I am developing a cordova app with ionic. I have some drawing functionality using canvas. Is there any way to detect whether user is drawing with finger or a S-Pen(Stylus) provided by samsung with mobile/tablet.
Asked
Active
Viewed 507 times
-1
-
Either find a plugin or develop one yourself. – Jul 29 '15 at 12:39
-
Thanks. I havn't found any plugin related to this. – Mayank Kumar Jul 29 '15 at 13:15
1 Answers
0
I think you cant, you can only diferenciate between touch events or keyboard/mouse events, so S Pen should trigger the touch ones. The only way is to create a plugin based on the S-Pen SDK provided by Samsung

Víctor
- 3,029
- 3
- 28
- 43
-
I think finger touch or S Pen touch both will fire touch events. Can i differenciate between them? – Mayank Kumar Jul 29 '15 at 13:18
-
1Only with the s-pen SDK, SO you would need to embeed it in a cordova plugin to achieve that – Víctor Jul 29 '15 at 13:40