Joystick Input - Lock Y Axis of Virtual Joystick?

Hi, I was just wondering wether there is a way to lock the Y-Axis of a virtual joystick so when i move it i can only move it in the X direction (horizontally)?

Thanks in advance.