Kamvas 13 pen working in HuionTablet app but not controlling the cursor
I have a Huion Kamvas 13 and it has worked completely fine until yesterday.
I opened Photoshop to draw and it didn't work, the cursor was not moving at all so i opened Adobe Animate and it still didn't work, same with Paint, Paint 3d and paint.net.
I opened the HuionTablet app to see if anything was wrong and it said "Device Disconnected" but the tablets display worked just fine.
Under "Device Disconnected" it said "Device Diagnosis" so i clicked that and the pen worked perfectly.
I have tried everything i can think of and more.
Restarting my computer, unplugging and plugging in the tablet (all cables), updating drivers, disabling Windows Ink, reenabling Windows Ink and even changing the sleep settings on my computer and nothing has worked.
I would really like some help.