Detect stylus/pen vs mouse vs touch input
I am trying to build a tool (JavaScript website or software with Electron or Tauri) that acts like a drawing app. It should be able to differentiate between stylus (digital pen) input, touch input and mouse inputs. I also would need to detect the stylus buttons, if they are pressed while the stylus touches the screen.