joystick class working