On Galaxy S5, other than the obvious finger touch method you can use a pencil as the pen input, as well as wearing gloves while touching the screen. You just need to increase touch sensitivity on Galaxy S5 and get more touch methods.
To enable writing with gloves or a pencil on Galaxy S5, do as follows:
1. Open Settings application
2. Tap the search icon and type: "Increase touch sensitivity"
** Or follow this path: Settings > Device < Display
3. Enable the "Increase touch sensitivity" option and have fun using your Galaxy S5 while wearing gloves or using a pencil.