Some Samsung devices, like many of their tablets, and some of their phones, use a stylus paired with the device called the S Pen. It's often very convenient for doing precise things with the touch screen.
For some reason, on the Android version of Terraria, the S Pen gets recognized as a mouse...