Scripting for touch screens

I’m new to programming and game design in general, I would like to know if scripting for mouse and keyboard differ greatly from touch screens such as tablets and smarthphones.

I have a game I’m trying to create and I want the user to press on the screen and hold their finger on the sprite in order to activate a powerbar that will dictate how powerful the launch will be, once the user releases their finger the sprite will launch a projectile.

On PC, from what I know, I’d assign a keyboard key to the script that would trigger the action, how does some one do this on touch, as in, what part of the code detects when a user has their finger on the device and off the device?

Thanks much for your time.

any of the mouse inputs work for tablets or phone

For trivial input you can use mouse input, but for anything more complex you need to use touch events as described on the Input page in the docs.

–Eric